Skip to content

Commit

Permalink
Merge branch '2.8' into 2
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Jun 12, 2023
2 parents 8301ae2 + a1259e0 commit 8d540f0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
10 changes: 5 additions & 5 deletions lang/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ en:
MainFontFamily: 'Main font family'
NavigationBarBackground: 'Navigation bar background'
TextLinkColor: 'Text link colour'
CWP\AgencyExtensions\Extensions\CarouselPageExtension:
ADDNEW: 'Add new'
NOTE: 'Carousel functionality will automatically be loaded when 2 or more items are added below'
TITLE: Hero/Carousel
TITLE_NOTE: 'Used by screen readers'
CWP\AgencyExtensions\Model\CarouselItem:
CONTENT_HELPTIP: 'Recommended: Use less than 50 words. For carousel slides, use a similar amount of content as other items to ensure carousel height does not vary.'
IMAGE_HELPTIP: 'Recommended: Use high resolution images greater than 1600x900px.'
Expand All @@ -34,11 +39,6 @@ en:
PRIMARYCALLTOACTION: 'Primary Call To Action Link'
SECONDARYCALLTOACTION: 'Secondary Call To Action Link'
SINGULARNAME: 'Carousel Item'
CarouselPageExtension:
php.CWP\AgencyExtensions\Extensions\CarouselPageExtensionADDNEW: 'Add new'
php.CWP\AgencyExtensions\Extensions\CarouselPageExtensionNOTE: 'NOTE: Carousel functionality will automatically be loaded when 2 or more items are added below'
php.CWP\AgencyExtensions\Extensions\CarouselPageExtensionTITLE: Hero/Carousel
php.CWP\AgencyExtensions\Extensions\CarouselPageExtensionTITLE_NOTE: 'Used by screen readers'
CwpConfig:
AppleIconField144: 'Apple Touch Web Clip and Windows 8 Tile Icon (dimensions of 144x144, PNG format)'
FooterLogoLinkDesc: 'Please include the protocol (ie, http:// or https://) unless it is an internal link.'
Expand Down
5 changes: 0 additions & 5 deletions lang/eo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ eo:
CWP:
SITECONFIG.EmptySearch: 'Teksto vidigota kiam mankas serĉpeto'
SITECONFIG.NoResult: 'Teksto vidigota kiam mankas rezultoj'
CarouselPageExtension:
php.CWP\AgencyExtensions\Extensions\CarouselPageExtensionADDNEW: 'Aldoni novan'
php.CWP\AgencyExtensions\Extensions\CarouselPageExtensionNOTE: 'NOTU: Karusela funkciado aŭtomate ŝarĝiĝos kiam 2 aŭ pliaj elementoj aldoniĝos sube'
php.CWP\AgencyExtensions\Extensions\CarouselPageExtensionTITLE: Heroo/Karuselo
php.CWP\AgencyExtensions\Extensions\CarouselPageExtensionTITLE_NOTE: 'Uzota de ekranlegiloj'
CwpConfig:
AppleIconField144: 'Apple Touch Web Clip kaj Windows 8 Tile emblemo (dimensioj 144x144, PNG formato)'
FooterLogoLinkDesc: 'Bonvolu inkludi la protokolon (t.e. http:// aŭ https://) krom se ĝi estas interna ligilo.'
Expand Down
10 changes: 5 additions & 5 deletions src/Extensions/CarouselPageExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,17 @@ public function updateCMSFields(FieldList $fields)
{
$gridField = GridField::create(
'CarouselItems',
_t(__CLASS__ . 'TITLE', 'Hero/Carousel'),
_t(__CLASS__ . '.TITLE', 'Hero/Carousel'),
$this->getCarouselItems(),
GridFieldConfig_RelationEditor::create()
);
$gridField->setDescription(_t(
__CLASS__ . 'NOTE',
__CLASS__ . '.NOTE',
'Carousel functionality will automatically be loaded when 2 or more items are added below'
));
$gridConfig = $gridField->getConfig();
$gridConfig->getComponentByType(GridFieldAddNewButton::class)->setButtonName(
_t(__CLASS__ . 'ADDNEW', 'Add new')
_t(__CLASS__ . '.ADDNEW', 'Add new')
);
$gridConfig->removeComponentsByType(GridFieldAddExistingAutocompleter::class);
$gridConfig->removeComponentsByType(GridFieldDeleteAction::class);
Expand All @@ -69,12 +69,12 @@ public function updateCMSFields(FieldList $fields)

$fields->findOrMakeTab(
'Root.Carousel',
_t(__CLASS__ . 'TITLE', 'Hero/Carousel')
_t(__CLASS__ . '.TITLE', 'Hero/Carousel')
);

$titleField = TextField::create('CarouselTitle', 'Carousel Title');
$titleField->setDescription(_t(
__CLASS__ . 'TITLE_NOTE',
__CLASS__ . '.TITLE_NOTE',
'Used by screen readers'
));

Expand Down

0 comments on commit 8d540f0

Please sign in to comment.