What's the simplest Php alternative to the Php gettext extension which can be supported by all kind of free hosting

ぐ巨炮叔叔 提交于 2019-11-29 14:29:42
Pekka 웃

I would say Zend_translate is the very best bet for internationalization these days. It's even better than gettext. See this SO Question for a number of arguments. This question was how I myself learned of Zend_translate.

It is a bit much for the simple task you show in your question, and it may be take a bit of work to get used to it in the beginning, but the Zend components promise very good solutions to all kinds of internationalization issues - which are more than just translating words. There are also different numbering formats, time formats, currency formats, time zones... all to be taken care of when internationalizing an application.

It doesn't require any specific extensions, and you can use parts of the Zend Framework as a simple library, there is no need to adhere to a specific application structure or anything.

This must be one of the oldest answers I've ever supplied, but...

PHP-gettext at https://launchpad.net/php-gettext is by far the simplest workhose as gettext replacement.

I've used in some projects I've had troubles getting gettext working with PHP.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!