开发者

How do you use the Gettext library with Codeigniter for i18n?

开发者 https://www.devze.com 2023-02-01 16:41 出处:网络
I’m finally developing my first multilingual site which came from an old no-CI site which used Gettext cause there’s a lot of text and not just actions. I’m really struggling to make the g开发者_Py

I’m finally developing my first multilingual site which came from an old no-CI site which used Gettext cause there’s a lot of text and not just actions. I’m really struggling to make the g开发者_Python百科ettext library to work with CI, having read the WIKI (first option) but I lacks information and examples.

  1. Is there someone here who has used the gettext library succesfully?
  2. Can you post some examples of controller and views?

Thanks in advance!


I'd recommend NOT using CI's language libraries for this. Use Poedit or another gettext()/ngettext() replacement program.

Trust me--you'll want all your externalized strings in a compiled format. Doing this from scratch is far more work than it's worth.

0

精彩评论

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