Skip to content

Commit 692eb54

Browse files
committed
Add choice_translation_domain to boolean filters to make sure labels are translated
1 parent e52d579 commit 692eb54

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Guesser/DoctrineFieldGuesser.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,8 @@ protected function getOptions($type, $dbType, $model, $fieldPath, $filter = fals
242242
'boolean.yes' => 1
243243
),
244244
'placeholder' => 'boolean.yes_or_no',
245-
'translation_domain' => 'Admingenerator'
245+
'translation_domain' => 'Admingenerator',
246+
'choice_translation_domain' => 'Admingenerator'
246247
);
247248

248249
if (Kernel::MAJOR_VERSION < 3) {

Guesser/PropelORMFieldGuesser.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,8 @@ protected function getOptions($type, $dbType, $model, $fieldPath, $filter = fals
289289
'boolean.yes' => 1
290290
),
291291
'placeholder' => 'boolean.yes_or_no',
292-
'translation_domain' => 'Admingenerator'
292+
'translation_domain' => 'Admingenerator',
293+
'choice_translation_domain' => 'Admingenerator'
293294
);
294295

295296
if (Kernel::MAJOR_VERSION < 3) {

0 commit comments

Comments
 (0)