Jump to content

jordisan (Jordi S.)

Members
  • Posts

    6
  • Joined

  • Last visited

Profile Information

  • Location
    Mallorca, Spain
  • Activity
    Freelancer

jordisan (Jordi S.)'s Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. For global translations I implemented this solution that might work for you: https://www.prestashop.com/forums/topic/550497-global-translations-solution/ Regards.
  2. I tried this solution and didn't work for me; instead, I implemented a different solution that might work for you: https://www.prestashop.com/forums/topic/550497-global-translations-solution/ Regards.
  3. If I understand right, in that case I think you should use the "standard" solution for translations in those pages (templates); that is {l s="..."} You can also have multiple "global" templates; for example, 0globaltrans-front.tpl and 0globaltrans-back.tpl with different translations for the same strings. And then include one or the other in your tpl files.
  4. As it seems there's no native way to implement global translations (i.e., shared translations that can be used in different templates/modules), let me share the solution I have implemented, which I have described in my blog: http://jordisan.net/blog/2016/global-translations-in-prestashop/ In short, I'm using a new .tpl file for global translations which can be included from different modules and themes/templates; the string to translate is passed to that template as a variable. Using this solution, these global translations can be managed through PrestaShop's back office. Any feedback will be welcome!
×
×
  • Create New...