Added missing translations.

Fixes issue #56.
This commit is contained in:
Jan Böhmer 2020-05-12 00:27:48 +02:00
parent 01c19ab634
commit 73ac4f1641
10 changed files with 110 additions and 48 deletions

View file

@ -59,6 +59,7 @@ class CurrencyAdminForm extends BaseEntityAdminForm
'preferred_choices' => ['EUR', 'USD', 'GBP', 'JPY', 'CNY'],
'attr' => [
'class' => 'selectpicker',
'title' => 'selectpicker.nothing_selected',
'data-live-search' => true,
],
'disabled' => ! $this->security->isGranted($is_new ? 'create' : 'edit', $entity),

View file

@ -56,7 +56,7 @@ class GroupAdminForm extends BaseEntityAdminForm
$builder->add('enforce2FA', CheckboxType::class, [
'required' => false,
'label' => 'group.edit.enforce_2fa',
'help' => 'entity.edit.enforce_2fa.help',
'help' => 'group.edit.enforce_2fa.help',
'label_attr' => [
'class' => 'checkbox-custom',
],

View file

@ -95,6 +95,7 @@ class LabelOptionsType extends AbstractType
},
'attr' => [
'class' => 'selectpicker',
'title' => 'selectpicker.nothing_selected',
'data-live-search' => true,
],
]);

View file

@ -82,6 +82,7 @@ class PartLotType extends AbstractType
'disable_not_selectable' => true,
'attr' => [
'class' => 'selectpicker form-control-sm',
'title' => 'selectpicker.nothing_selected',
'data-live-search' => true,
],
]);

View file

@ -63,6 +63,7 @@ class MasterPictureAttachmentType extends AbstractType
'choice_translation_domain' => false,
'attr' => [
'class' => 'selectpicker',
'title' => 'selectpicker.nothing_selected',
],
'choice_attr' => function (Options $options) {
return function ($choice, $key, $value) use ($options) {

View file

@ -121,6 +121,7 @@ class StructuralEntityType extends AbstractType
$tmp = [
'class' => 'selectpicker',
'data-live-search' => true,
'title' => 'selectpicker.nothing_selected',
];
if ($options['empty_message']) {
$tmp['data-none-Selected-Text'] = $options['empty_message'];

View file

@ -151,6 +151,7 @@ class UserAdminForm extends AbstractType
'required' => false,
'attr' => [
'class' => 'selectpicker',
'title' => 'selectpicker.nothing_selected',
'data-live-search' => true,
],
'placeholder' => 'user_settings.language.placeholder',
@ -162,6 +163,7 @@ class UserAdminForm extends AbstractType
'required' => false,
'attr' => [
'class' => 'selectpicker',
'title' => 'selectpicker.nothing_selected',
'data-live-search' => true,
],
'placeholder' => 'user_settings.timezone.placeholder',
@ -177,6 +179,7 @@ class UserAdminForm extends AbstractType
},
'attr' => [
'class' => 'selectpicker',
'title' => 'selectpicker.nothing_selected',
],
'choice_translation_domain' => false,
'placeholder' => 'user_settings.theme.placeholder',

View file

@ -122,7 +122,7 @@ class UserSettingsType extends AbstractType
'attr' => [
'class' => 'selectpicker',
],
'translation_domain' => false,
'choice_translation_domain' => false,
'choices' => User::AVAILABLE_THEMES,
'choice_label' => function ($entity, $key, $value) {
return $value;