return $newChoices; | 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 | public function transHelp($fieldName, $entityClass): string | ||||
{ | { | ||||
$fieldName = $fieldName . '_help'; | $fieldName = $fieldName . '_help'; |