Browse Source

Correctif TranslatorAdmin

develop
Guillaume 3 years ago
parent
commit
5dbaa61ebf
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      Translation/TranslatorAdmin.php

+ 5
- 0
Translation/TranslatorAdmin.php View File

@@ -49,6 +49,11 @@ class TranslatorAdmin
return $newChoices;
}

public function transChoice(string $entityName,string $field, string $choice): string
{
return $this->transField($field.'Choices.'.$choice, $entityName);
}

public function transHelp($fieldName, $entityClass): string
{
$fieldName = $fieldName . '_help';

Loading…
Cancel
Save