jrausell Posted March 11, 2014 Share Posted March 11, 2014 Hello, I'm trying to translate some modules but I can't get it to work. For example for the "blockpermanentlinks" I created the file themes/themetest/modules/translations/es.php <?php global $_MODULE; $_MODULE = array(); $_MODULE['{blockpermanentlinks}prestashop>blockpermanentlinks_106a6c241b8797f52e1e77317b96a201'] = 'Inicio'; $_MODULE['{blockpermanentlinks}prestashop>blockpermanentlinks_2f8a6bf31f3bd67bd2d9720c58b19c9a'] = 'Contacto'; ?> <li ><a href="{$link->getPageLink('index.php')}" class="header_links_home" title="{l s='home' mod='blockpermanentlinks'}">{l s='home' mod='blockpermanentlinks'}</a></li> <li ><a href="{$link->getPageLink('contact', true)}" class="header_links_contact" title="{l s='contact' mod='blockpermanentlinks'}">{l s='contact' mod='blockpermanentlinks'}</a></li> But prestashop ignores the translation file. I tryed to put in the module folder too but nothing works. Spanish is the unique language in my shop. What I'm doing wrong? Thanks Link to comment Share on other sites More sharing options...
hassan_mihai Posted March 11, 2014 Share Posted March 11, 2014 translation of a module is must be in module folder for you is theme/themetest/modules/blockpermanentlinks/es.php Link to comment Share on other sites More sharing options...
jrausell Posted March 11, 2014 Author Share Posted March 11, 2014 Thanks Hassan, but didn't work. I cleared the cache, copy the file and nothing, also tryed to copy the es.php to all module folders and nothing Link to comment Share on other sites More sharing options...
dioniz Posted March 11, 2014 Share Posted March 11, 2014 For translation go to BO > Localization > Translations then under Modify translations select installed modules translation and click on language flag. Find a module and there you can translate it. Link to comment Share on other sites More sharing options...
jrausell Posted March 11, 2014 Author Share Posted March 11, 2014 Thanks Dioniz, but I don't have this option available because I cannot modify the max_input_vars Link to comment Share on other sites More sharing options...
jrausell Posted March 11, 2014 Author Share Posted March 11, 2014 Ok, I found the problem, the correct name is "blockpermanentlinks-header" Link to comment Share on other sites More sharing options...
Recommended Posts