PetkoparaCrudGeneratorBundle icon indicating copy to clipboard operation
PetkoparaCrudGeneratorBundle copied to clipboard

Add i18n support

Open yosbelms opened this issue 7 years ago • 6 comments

Should be good to have all texts separated in a .yaml file for easy translation.

yosbelms avatar Jan 04 '17 19:01 yosbelms

guys can someone help me , to made a translation from en to fr ?

ahmed-bhs avatar Feb 01 '17 19:02 ahmed-bhs

By translation you mean actual language translations or code implementation for the feature?

petkopara avatar Feb 01 '17 19:02 petkopara

i want to build a multi platform luangage the problém that i didnt get a way to translate these message(exmple: Next ,Previous,Filter,DElete,New...) using symfony transaltor component. i alreday have this file : app\Ressources\Translations\messages.fr.yml:


Groups: Groups
View user:                       Voir l'utilisateur
"%entity% creation":             "Création - %entity%"
"%entity% edit":                 "Modification - %entity%"
"%entity% list":                 "Liste - %entity%"
Actions:                         Actions
Back to the list:                Retour à la liste
Confirm delete:                  Confirmer la suppression
Create:                          Créer
Create a new entry:              Nouveau
Delete:                          Supprimer
"Do you want to proceed?":       "Voulez-vous poursuivre?"
Edit:                            Modifier
Filter:                          Filtrer
No:                              Non
Reset filters:                   Annuler les filtres
show:                            voir
"Show/hide filters":             "Afficher/masquer les filtres"
this procedure is irreversible:  cette procédure est irréversible
Yes:                             Oui
You are about to delete an item: Vous êtes sur le point de supprimer un élément
New:                             ajouter un nv
previous: Précédent
next: Suivant
Delete : Effacer
DELETE : EFFACER
First login : Première connexion
adzd: zeffffffffffffffffff
users was deleted successfully!: Utilisateurs a été supprimé avec succès!
List: Liste
Save: Enregistre
Save and Add: Enregistre et ajouter un nouveau
Reset: Réinitialiser
User: Les Utilisateurs
Are you sure !: Êtes-vous sûr !
The User was deleted successfully: L'utilisateur a été supprimé avec succès
Back to list: Retourner à La Liste
Login count: Nombre de connexions

but nothing work when i set local to fr

ahmed-bhs avatar Feb 02 '17 17:02 ahmed-bhs

+1

mchojrin avatar Mar 07 '17 23:03 mchojrin

@petkopara any help plz , any idea

ahmed-bhs avatar May 25 '17 22:05 ahmed-bhs

I got the same problem at the head of table

<th>{{macros.th_sortable('code',app.request.get('pcg_sort_col'), app.request.get('pcg_sort_order') , 'buyingplanitem') }}</th>
<th>{{macros.th_sortable('申请日期',app.request.get('pcg_sort_col'),

As you see, if I change the head name of table, the sort will not work. And I found th_sortable could add translation filter to add translation like this

{{colName|capitalize|trans}}

But it must be change vendor code and can't add translation label for it.

TonyGao avatar Nov 17 '17 01:11 TonyGao