Sfoglia il codice sorgente

Correctif TranslatorAdmin

develop
Guillaume 3 anni fa
parent
commit
5dbaa61ebf
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. +5
    -0
      Translation/TranslatorAdmin.php

+ 5
- 0
Translation/TranslatorAdmin.php Vedi 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…
Annulla
Salva