Prestashop translation not showing up
Very often in Prestashop You need to flush page and browser cache memory.
In Prestashop BO go to Advanced Parameters / Performance and turn cache off and force theme compilation. Then use Clean Smarty and Autoload cache button.
Next clean browser and refresh Your site by CTRL+F5.
This should help!
doterobcn
Updated on July 27, 2022Comments
-
doterobcn almost 2 years
I just created a new module to manage some strings. I installed the module and i see the texts on the backend to translate.
So far, so good.
But the problem is, that once i translate and save, i can't seem to get the updated information on the frontend.I added this into my product.tpl template
{l s='CI' mod='aproductimages'}
That translation, according to Prestashop, is saved as "http://.......image.jpg", but when i print it on the template, i only get "CI" (the original string, not the translation)
I tried downloading my module's translation files, but they're empty.
Is that correct? am i missing something?
Thanks! -
doterobcn about 9 yearsThanks for you answer!, i tried your approach but i'm missing the Clean Smarty and Autoload cache button, there's nothing in the performance page to do this. Is there any other way around it?, should my module translation files be updated automatically?
-
Admin about 9 yearsIf Your PS dont have this button nemops.com/wp-content/uploads/2013/09/… then You need to delete all content from compile/smarty/CACHE folder . You can do this safetly. Nothing will happend to Your site
-
doterobcn about 9 yearsThanks, gotta try that!!
-
doterobcn about 9 yearsSadly that didn't work either, i cleared all caches, but translations are still not showing up :(
-
Admin about 9 years" I tried downloading my module's translation files, but they're empty." - check this file permissions too. {l s='CI' mod='aproductimages'} in product.tpl? Use rather {l s='CI'} and translate apropriate string in BO
-
JonnyDevv about 5 years@MichaelKäfer Did your find a solution?
-
Admin about 5 years@JonnyDevv which PS version?
-
JonnyDevv about 5 years@PrestaShark I'm in version 1.7.5. It's working now. Add to change to new translations system using syntax {l s='Text to translate' mod='mymodule'}. Now I'm having troubles to translate form errors in my new module form in front office. $this->context->controller->errors[] = $this->l('error message') doesn't appear in backoffice translation system.