【发布时间】:2014-11-18 22:56:32
【问题描述】:
我想用SMARTY做一个多语言网站。
我读了这篇文章: http://www.freesoftwaremagazine.com/articles/creating_multilingual_website_smarty
但是它不适用于 smarty3,我不知道这些配置是如何工作的:我是 smarty 的新手。
例如:我的网站内容现在
你好,你好吗
我可以在我的变量中使用空格吗,我不必像这样重写它:
{$hello_world_how_are_you}
但我宁愿保留类似的东西
{你好,你好吗} 或
/#hello world,你好吗#/
为了避免我必须翻译的每个短语都重写 slug
【问题讨论】: