2017-03-07 98 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()函數。