Bonjour, j'utilise jmsTranlatorBundle pour traduire mes traductions, mais aprés avoir exécuter le ligne de commande suivante:
F:\projets\Symfony>php app/console translation:extract en
--bundle=EcommerceCatalogueBundle
--output-format=xlf
mais rien n'est traduit dans les fichiers
Exemple pour des validators:
et mon fichier messages:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 <?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:jms="urn:jms:translation" version="1.2"> <file date="2013-11-04T10:33:14Z" source-language="en" target-language="en" datatype="plaintext" original="not.available"> <header> <tool tool-id="JMSTranslationBundle" tool-name="JMSTranslationBundle" tool-version="1.1.0-DEV"/> <note>The source node in most cases contains the sample message as written by the developer. If it looks like a dot-delimitted string such as "form.label.firstname", then the developer has not provided a default message.</note> </header> <body> <trans-unit id="0815ef2730251262b9cbd0d29e3131a02a1a88d3" resname="La valeur doit être numérique"> <source>La valeur doit être numérique</source> <target>La valeur doit être numérique</target> </trans-unit> <trans-unit id="b69640a4e9037fcbc7d4070292808c53a838a4d6" resname="Le champ doit comporter au moins {{ limit }} caractères"> <source>Le champ doit comporter au moins {{ limit }} caractères</source> <target>Le champ doit comporter au moins {{ limit }} caractères</target> </trans-unit>
Une idée peut etre car faut quand même pas tous traduire à la main sous symfony1 ca ce traduisé correctement
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 <?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:jms="urn:jms:translation" version="1.2"> <file date="2013-11-04T10:33:14Z" source-language="en" target-language="en" datatype="plaintext" original="not.available"> <header> <tool tool-id="JMSTranslationBundle" tool-name="JMSTranslationBundle" tool-version="1.1.0-DEV"/> <note>The source node in most cases contains the sample message as written by the developer. If it looks like a dot-delimitted string such as "form.label.firstname", then the developer has not provided a default message.</note> </header> <body> <trans-unit id="9909bb596572a9b95b7aee0281fa5dd23a94f5ce" resname="Mot-clé :"> <source>Mot-clé :</source> <target>Mot-clé :</target> <jms:reference-file line="13">CatalogueBundle/Form/ProduitRechercheForm.php</jms:reference-file> </trans-unit> </body> </file> </xliff>
Merci les amis
Partager