ginotoffoli Posted March 5, 2014 Share Posted March 5, 2014 Hi, I did a my own module. Everything works fine, but now I have problems with translation. I created two files en.php and it.php.When I put in the mymodule.tpl file something like {1 s='Choose lens pack' mod='mymodule'} it appears in the module translation page where I can update the translation, but looking in the files in the module folder they are not updated and changing language on the website it does not translate 'Choose lens pack' in the language selected. Moreover, if I add another {1 s='Choose another lens pack' mod='mymodule'} the result is a blank page and it does not appear in the translation page. Any idea? Link to comment Share on other sites More sharing options...
vekia Posted March 5, 2014 Share Posted March 5, 2014 you use 1 instead of l in: {1 s='Choose another lens pack' mod='mymodule'} use l like Language not 1 1 Link to comment Share on other sites More sharing options...
ginotoffoli Posted March 5, 2014 Author Share Posted March 5, 2014 Thank you! I solved the problem with the template, but adding language variables they do not appear in the translation page and I do not get translations on the website changing languages. Link to comment Share on other sites More sharing options...
ginotoffoli Posted March 5, 2014 Author Share Posted March 5, 2014 Do I have to reinstall the module? The strange thing is that in the translation page I have 3 fields that result translated, but this fields does not appear in any files within my module. Link to comment Share on other sites More sharing options...
ginotoffoli Posted March 5, 2014 Author Share Posted March 5, 2014 SOLVED!! The solution was to update the translation selecting the theme and not the default translation. In the theme folder PS made all the new translations files. Link to comment Share on other sites More sharing options...
Recommended Posts