开发者

Is there a i18n/translation solution for Smarty?

开发者 https://www.devze.com 2023-03-23 11:53 出处:网络
I\'m developing a PHP-based application that requires internationalization (i18n) support. I\'m using Smarty 3 as a template solution (and TinyMVC as the framework), and althoug开发者_StackOverflow中

I'm developing a PHP-based application that requires internationalization (i18n) support.

I'm using Smarty 3 as a template solution (and TinyMVC as the framework), and althoug开发者_StackOverflow中文版h I've been using it for small projects before (back in the days of Smarty 2.x), I haven't known about any easy-to-use i18n plugins for it. Is there such plugin/extension for Smarty 3.x that'll do the job for me? I don't mind if the backend is a bit hard to setup, that's fine, all I need is a good way to implement it in templates.

I need to translate this app into multiple languages, so I need to find a way for Smarty to support it. Is there one? Thanks.


You can use a gettext plugin with Smarty, such as the one posted on this thread which the poster developed for Smarty 3 and that he claims to have been using in production for over six months without issue.

0

精彩评论

暂无评论...
验证码 换一张
取 消