2017-03-07 99 views
0

我正在使用prestashop 1.7上的模块。Prestashop 1.7 - 我的翻译没有出现在翻译界面

我正在翻译,但我在前台有问题。 我的后台字符串出现在翻译界面,但不是前台。

我有,例如我的前办公室的TPL文件:

<tr> 
    <th>{l s='Name of the category' d='mynewmodule'}</th> 
    <th>{l s='Select' d='mynewmodule'}</th> 
</tr> 

但没有出现在翻译界面。 我在罚款:翻译 - >安装的模块转换 - > mynewmodule

但没有什么(除了那些后台的)

谢谢您的帮助。彼得。

回答

1

此刻你必须使用'旧'系统。

{l s='Name of the category' mod='mynewmodule'} 

这一切都是暂时的。开发人员正在努力将所有翻译系统迁移到新的'嵌入式'symfony系统。

+0

奥奇,谢谢 –

+0

不客气,我的朋友;) – sarcom

0

如果你想支持PrestaShop 1.7翻译系统翻译文本,请按照此:

//你的模块名称必须启动ps_。 //您的模块名称应该在prestashop翻译域名后面出现。

//您可以从print_r($this->context->getTranslator()->getCatalogue()->all())获得所有prestashop域到此代码。

//如果域名是shoppingcart那么您的原始模块名称应该是ps_shoppingcart

//之后如果您在该模块上使用了{l s='translate text' d='domain'}这个系统,那么它会翻译prestashop 1.7.x.x系统。

//您可以在此处看到prestashop核心代码:root\controllers\admin\AdminTranslationsController.php this fileisUsingNewTranslationsSystem()函数。