gpt4 book ai didi

smarty - 在 Prestashop 中传递翻译字符串内的变量

转载 作者:行者123 更新时间:2023-12-02 06:58:26 24 4
gpt4 key购买 nike

我需要在 Prestashop 中传递一个带有翻译字符串的变量。在后端可以这样做

sprintf($this->l('The number is %1$d'), $number);

但是我需要在使用 SMARTY 时在前端执行此操作?有人可以帮助我吗?

最佳答案

类似这样的东西:

{l s='The number is %1$d' sprintf=$number}

关于smarty - 在 Prestashop 中传递翻译字符串内的变量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11340742/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com