mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
NEW default value for Country Dropdown (add i18n to the new fields)
This commit is contained in:
parent
8870833318
commit
b205ca952a
@ -49,14 +49,12 @@ class EditableCountryDropdownField extends EditableFormField
|
|||||||
|
|
||||||
$fields->addFieldToTab(
|
$fields->addFieldToTab(
|
||||||
'Root.Main',
|
'Root.Main',
|
||||||
CheckboxField::create('UseEmptyString')
|
CheckboxField::create('UseEmptyString', _t(__CLASS__ . '.USE_EMPTY_STRING', 'Set default empty string'))
|
||||||
->setTitle('Set default empty string')
|
|
||||||
);
|
);
|
||||||
|
|
||||||
$fields->addFieldToTab(
|
$fields->addFieldToTab(
|
||||||
'Root.Main',
|
'Root.Main',
|
||||||
TextField::create('EmptyString')
|
TextField::create('EmptyString', _t(__CLASS__ . '.EMPTY_STRING', 'Empty String'))
|
||||||
->setTitle('Empty String')
|
|
||||||
);
|
);
|
||||||
|
|
||||||
return $fields;
|
return $fields;
|
||||||
|
@ -89,11 +89,14 @@ en:
|
|||||||
other: '{count} Checkbox Groups'
|
other: '{count} Checkbox Groups'
|
||||||
SINGULARNAME: 'Checkbox Group'
|
SINGULARNAME: 'Checkbox Group'
|
||||||
SilverStripe\UserForms\Model\EditableFormField\EditableCountryDropdownField:
|
SilverStripe\UserForms\Model\EditableFormField\EditableCountryDropdownField:
|
||||||
|
DEFAULT: 'Default value'
|
||||||
|
EMPTY_STRING: 'Empty String'
|
||||||
PLURALNAME: 'Country Dropdowns'
|
PLURALNAME: 'Country Dropdowns'
|
||||||
PLURALS:
|
PLURALS:
|
||||||
one: 'A Country Dropdown'
|
one: 'A Country Dropdown'
|
||||||
other: '{count} Country Dropdowns'
|
other: '{count} Country Dropdowns'
|
||||||
SINGULARNAME: 'Country Dropdown'
|
SINGULARNAME: 'Country Dropdown'
|
||||||
|
USE_EMPTY_STRING: 'Set default empty string'
|
||||||
SilverStripe\UserForms\Model\EditableFormField\EditableDateField:
|
SilverStripe\UserForms\Model\EditableFormField\EditableDateField:
|
||||||
PLURALNAME: 'Date Fields'
|
PLURALNAME: 'Date Fields'
|
||||||
PLURALS:
|
PLURALS:
|
||||||
|
Loading…
Reference in New Issue
Block a user