RaWMotorsports Posted May 7, 2020 Share Posted May 7, 2020 (edited) Bonjour, Je ne trouve pas de sujet sur google à propos de la traduction de texte "custom" sur les factures. <th class="product header small" width="55%">{l s='Product' d='Shop.Pdf' pdf='true'}</th> <th class="product header small" width="10%">{l s='Qty to deliver' d='Shop.Pdf' pdf='true'}</th> <th class="product header small" width="10%">{l s='Qty in backorder' d='Shop.Pdf' pdf='true'}</th> J'ai rajouté les deux dernieres lignes avec deux chaines de texte traduisible dans delivery-slip.product-tab.tpl Sauf que ces chaines n'apparaissent pas dans le BO dans l'onglet traductions. Quelqu'un a la solution pour traduire du texte custom dans les factures / BL ? Prestashop 1.7.6 Edited May 7, 2020 by RaWMotorsports (see edit history) Link to comment Share on other sites More sharing options...
kerlin Posted May 7, 2020 Share Posted May 7, 2020 bonjour, je suppose que vous avez regardé dans les traductions du thème > Shop > PDF. Peut-être vider le cache ? supprimer (ou renommer pour que cela aille plus vite) les dossiers dev et prod dans var/cache ? Avec 1.7 ce n'est pas toujours évident que les traductions remontent bien dans l'onglet ... Link to comment Share on other sites More sharing options...
RaWMotorsports Posted May 8, 2020 Author Share Posted May 8, 2020 Bonjour kerlin, Merci pour ton aide, mais je regarde bien la ou tu dis. J'ai essayer de supprimer le cache dans prestashop + les dossiers que tu stipulent. Rien a faire ! Steve Link to comment Share on other sites More sharing options...
RaWMotorsports Posted May 11, 2020 Author Share Posted May 11, 2020 C'est une question si difficile que ca ? Link to comment Share on other sites More sharing options...
kerlin Posted May 11, 2020 Share Posted May 11, 2020 C'est avec quel thème ? Classic ? Une petite recherche sur Google me donne ceci : https://build.prestashop.com/howtos/translation/how-to-translate-your-theme/?_ga=2.170845408.1508871542.1552321569-1715892454.1519030393 et ceci : https://www.prestashop.com/forums/topic/663131-problème-traduction-ajout-de-traduction-prestashop-17/# Link to comment Share on other sites More sharing options...
RaWMotorsports Posted May 15, 2020 Author Share Posted May 15, 2020 Bonjour, Alors aucune méthode automatique n'a fonctionné, reste la méthode manuelle qui a fonctionné : Quand ça marche pas automatiquement, on fait à la main : Je prends cet exemple : {l s='my text' d='Shop.Theme.Global'} Dans \themes\votre_thème\translations\fr-FR\ShopThemeGlobal.fr-FR.xlf à moins que ce soit app\Resources\translations\fr-FR\ ShopThemeGlobal.fr-FR.xlf : vous recopiez un paragraphe et vous l’adaptez. Par chez moi, le paragraphe pour ce fichier-là sera : <trans-unit id="d3b96ce8c9fb4e9bd0198d03ba6852c7"> <source>my text</source> <target>mon texte</target> <note></note> </trans-unit> Pour obtenir le bon id, allez sur ce site : www.md5.fr et tapez le texte source ("my text"). Il va transformer votre texte en code MD5. Ensuite videz votre cache (Menu du BackOffice > Paramètres avancés > Performances). 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