Prestashop translation not showing up

10,482

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!

Share:
10,482
doterobcn
Author by

doterobcn

Updated on July 27, 2022

Comments

  • doterobcn
    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
    doterobcn about 9 years
    Thanks 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
    Admin about 9 years
    If 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
    doterobcn about 9 years
    Thanks, gotta try that!!
  • doterobcn
    doterobcn about 9 years
    Sadly that didn't work either, i cleared all caches, but translations are still not showing up :(
  • Admin
    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
    JonnyDevv about 5 years
    @MichaelKäfer Did your find a solution?
  • Admin
    Admin about 5 years
    @JonnyDevv which PS version?
  • JonnyDevv
    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.