tamu secreto Posted January 10, 2017 Share Posted January 10, 2017 IMPOSSIBLE TO TRANSLATE MODULES IN PS 1.7.XTHIS DOESN´T WORK: $this->context->getTranslator('TEXT TEXT' , array(), 'Modules.moduleName.Admin'); NEITHER DOES THIS: $this->getTranslator()->trans('TEXT TEXT' , array(), 'Modules.moduleName.Admin'); AND NEITHER THIS WAY: $this->trans('TEXT TEXT' , array(), 'Modules.moduleName.Admin'); IF I USE THIS IN THE MODULE CLASS: $this->l('TEXT TEXT'); I CANNOT SAVE THE MODULE´S TPL TRANSLATIONS WHEN USING: {l s='Virtual Eyewear Try-on.' d='Modules.moduloName.Shop'} THE SAVE BUTTON JUST DOES NOTHINGAND IF I SAVE TRANSLATIONS FROM ADMINIT DELETES ALL TRANSLATIONS!!!!! IT IS IMPOSSIBLE TO USE THE PREVIOUS LEGACY TRANSLATION SYSTEMQUÉ TENEMOS QUE HACER????ORAR ????? Link to comment Share on other sites More sharing options...
joseantgv Posted January 10, 2017 Share Posted January 10, 2017 IMPOSSIBLE TO TRANSLATE MODULES IN PS 1.7.X THIS DOESN´T WORK: $this->context->getTranslator('TEXT TEXT' , array(), 'Modules.moduleName.Admin'); NEITHER DOES THIS: $this->getTranslator()->trans('TEXT TEXT' , array(), 'Modules.moduleName.Admin'); AND NEITHER THIS WAY: $this->trans('TEXT TEXT' , array(), 'Modules.moduleName.Admin'); IF I USE THIS IN THE MODULE CLASS: $this->l('TEXT TEXT'); I CANNOT SAVE THE MODULE´S TPL TRANSLATIONS WHEN USING: {l s='Virtual Eyewear Try-on.' d='Modules.moduloName.Shop'} THE SAVE BUTTON JUST DOES NOTHING AND IF I SAVE TRANSLATIONS FROM ADMIN IT DELETES ALL TRANSLATIONS!!!!! IT IS IMPOSSIBLE TO USE THE PREVIOUS LEGACY TRANSLATION SYSTEM QUÉ TENEMOS QUE HACER???? ORAR ????? Revisa este commit: https://github.com/PrestaShop/PrestaShop/commit/9e21151653c331368a0cd2fd3fb1fd136f7f381d 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