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.
- Is there someone here who has used the gettext library succesfully?
- 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.
精彩评论