Is there an i18n / translation solution for Smarty?

I am developing a PHP application that requires internationalization support (i18n).

I use Smarty 3 as a template solution (and TinyMVC as a framework), and although I used it for small projects before (back in the days of Smarty 2.x), I was not aware of any easy-to-use i18n plugins for it. Is there such a plugin / extension for Smarty 3.x that will do the job for me? I don’t mind if the backend is a little difficult to set up, it’s fine, all I need is a good way to implement it in templates.

I need to translate this application into several languages, so I need to find a way to support Smarty. Is there any? Thanks.

+6
source share
1 answer

You can use the gettext plugin with Smarty, for example, published on this thread , which the poster developed for Smarty 3 and which, he claims, has been used in production for more than six months without problems.

+3
source

Source: https://habr.com/ru/post/893576/


All Articles