开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜