webmaster.success3 Posted March 6, 2018 Share Posted March 6, 2018 Bonjour Ma version : Prestashop 1.7.2.4 Je suis en train de personnaliser le thème "classic" en ajouteant {l s='A partir de' d='Shop.Theme.Actions'} Je veux donc traduire ce texte mais je ne le retouve pas dans l'admin : Traductions > Modifier les traductions > Traductions de thème > Classic > FR et EN (j'ai testé les deux), il n'apparait nul part J'ai vidé les caches, recompilé etc. mais rien n'y fait. Quelqu'un aurait une idée svp ? @++ Link to comment Share on other sites More sharing options...
Atch Posted March 7, 2018 Share Posted March 7, 2018 Bonjour, il ne faut pas réutiliser les chaines natives... Avez vous essayez avec {l s='From' d='Shop.Theme.Mytheme'} Et quitte à faire bien, pensez à mettre votre texte d'origine en anglais V++ Atch Link to comment Share on other sites More sharing options...
webmaster.success3 Posted March 7, 2018 Author Share Posted March 7, 2018 3 hours ago, Atch said: {l s='From' d='Shop.Theme.Mytheme'} Bonjour Merci pour votre réponse. J'ai essayé avec votre exemple mais ça n'a pas fonctionné. J'ai donc cherché dans les traduction déjà présente et effectivement il y a déjà un From {l s='From' d='Modules.Legalcompliance.Shop'} Et ça fonctionne bien, merci J'ai essayé d'en créer un autre avec l'anglais en texte d'origine, j'ai fait plusieurs essais différents, mais rien n'apparaît dans les traductions {l s='The word of the creator:' d='Shop.Theme.Catalog'} {l s='The word of the creator:' d='Shop.Theme.Mytheme'} {l s='The word of the creator:' d='Shop.Theme.Actions'} ... Je calle... :/ Link to comment Share on other sites More sharing options...
webmaster.success3 Posted March 7, 2018 Author Share Posted March 7, 2018 Un début de piste ? En allant dans "app/Resources/translations/default" et en dans le fichier "ShopThemeCatalog.xlf" j'ai pu ajouter <trans-unit id="823244e751d6ae28ff8a794478337a0c"> <source>The word of the creator:</source> <target>The word of the creator:</target> <note>Context: File: themes/classic/templates/catalog/product.tpl:91</note> </trans-unit> Je vois bien apparaître le champ "The word of the creator:" dans les traductions, j'ai bien mis la version FR, mais sur le site rien ne change quand le passe du FR à EN et vis versa :/ Est-ce un problème avec id="823244e751d6ae28ff8a794478337a0c" ? Que j'ai crypté en MD5 à partir de "The word of the creator:" Une idée ? @++ Link to comment Share on other sites More sharing options...
Atch Posted March 7, 2018 Share Posted March 7, 2018 http://build.prestashop.com/howtos/translation/how-to-translate-your-theme/ Link to comment Share on other sites More sharing options...
webmaster.success3 Posted March 8, 2018 Author Share Posted March 8, 2018 23 hours ago, Atch said: http://build.prestashop.com/howtos/translation/how-to-translate-your-theme/ Hello Merci pour le tuto J'ai réussi mais pas tout à fait comme indiqué dans le tuto, qui dit de créer une chaine du genre "Shop.Classic" qui créer bien un fichier "ShopClassic.fr-FR.xlf" et demande de le copier dans "/themes/classic/translations/fr-FR" mais ça n'apparaît pas dans les traductions. J'ai donc ajouté à mon code {l s='The word of the creator:' d='Shop.Theme.Catalog'} J'ai récupéré et traduit manulement le code dans "ShopThemeCatalog.fr-FR.xlf" (car rien n'apparaît dans les traductions) et je l'ai copié dans /app/Resources/translations/fr-FR C'est un peu bidouillé mais ça fonctionne :/ Merci pour l'aide, post résolu @++ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now