Jump to content

PrestaShop 1.5.2 - How do I keep a module translation safe?


AppleEater

Recommended Posts

I've read that if I want to prevent my modules translations from being overwritten when PS is upgraded, I need to keep the translations in the current theme directory. I will appreciate if someone can post a clear explanation on what module files are need to be saved where.

 

Thank you.

Link to comment
Share on other sites

  • 3 weeks later...

Looking at the code in Translate.php I would say that you have to copy your modules folder into your theme folder.

 

For instance if you have a module called mymodule that resides in '/modules/mymodule/' and if your custom theme is named 'mytheme', just copy the 'mymodule' folder to '/themes/mytheme/modules/'.

 

Note that only the translations (and the corresponding folder hierarchy) need to be copied (but for simplicity you can copy the whole folder if you don't care about the disk space usage).

 

As always, I encourage you to test that everything works fine in a real use case before trusting this solution!

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...