Jump to content

imposible traducir modulos en Ps 1.7.x


Recommended Posts

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 ????? :wub:

Link to comment
Share on other sites

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 ????? :wub:

 

Revisa este commit: https://github.com/PrestaShop/PrestaShop/commit/9e21151653c331368a0cd2fd3fb1fd136f7f381d

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...