Prestashop要翻译的新字符串不会出现在我的后台

时间:2015-01-14 17:32:20

标签: prestashop

我有一个非常愚蠢的问题,我需要翻译一个新字符串。我将它添加到我的主题文件中:

文件:/themes//order-carrier.tpl

{*Displaying a link to CMS page*} 
{if $carrier.id_carrier == 36} 
    <a href="{$link->getCMSLink(21)}" target="_blank">{l s="My new string"}</a>
{/if}

但是当我到后台翻译字符串时,我找不到这个新字符串(工具&gt;翻译)......

我正在使用Prestashop 1.4.9而且我禁用了Smarty的缓存。

1 个答案:

答案 0 :(得分:0)

嗯,这是因为我在这一行使用了双引号而不是单引号:{l s =&#34;我的新字符串&#34;}

Cf:https://www.prestashop.com/forums/topic/376146-cant-translate-strings-from-included-tpl-in-a-custom-module/