Prestashop 如何在 tpl 文件中添加不同语言的静态内容 [英] Prestashop how to add static contents in different language in tpl file
本文介绍了Prestashop 如何在 tpl 文件中添加不同语言的静态内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要在 Prestashop 模板文件中添加一些自定义文本,但我的商店中有两种语言,我想静态添加不同语言的这些内容?我可以通过语言 ID 查看当前语言吗?
I need add some custom text in Prestashop template file, but there are two languages in my store, and I want to add these contents in different language statically? Can I check current language by language id?
推荐答案
静态
{if $lang_iso == en }
english text
{else}
Other language
{/if}
这篇关于Prestashop 如何在 tpl 文件中添加不同语言的静态内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文