Tauri28 Posted February 17, 2015 Share Posted February 17, 2015 I would like to know, if it is possible to add translations right when module is installed? I know module folder can have translations folder, where language files are created automatically by the prestashop back office translation tool, when selected for core but can you add the language files with the installation? How? Link to comment Share on other sites More sharing options...
El Patron Posted February 17, 2015 Share Posted February 17, 2015 sure, in your test environment, install your module, then using back office make translations normally, ps will put the xlations into your module folder. Then you zip that module and make it available to your distribution method. Link to comment Share on other sites More sharing options...
Tauri28 Posted February 17, 2015 Author Share Posted February 17, 2015 I tried solution where I provided translation file with the module from the installation but prestashop still did not get all the translations but changed the hash in the translation files instead. For example I provided following line: $_MODULE['<{MODULENAME}prestashop>MODULENAME_8b0c97deb9ffdc4b4296b68f741eec7a'] = 'My value'; But prestashop changed the 8b0c97deb9ffdc4b4296b68f741eec7a to c1e07bde1f333eae66760d01e30f60ba meaning it did not get the provided value. Same thing happened for 3 translations. Worked for 30 other translations tho, where hashes stayed the same but half working solution ain't acceptable at this point. Any ideas? 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