CodeIgniter Forums
How to make multi lang site - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: How to make multi lang site (/thread-22234.html)



How to make multi lang site - El Forum - 09-02-2009

[eluser]umefarooq[/eluser]
Hi
how can I make multi lang site with CI any help tutorial code please share the experience.


How to make multi lang site - El Forum - 09-02-2009

[eluser]n0xie[/eluser]
There are several ways, but most rely on rewriting the url to add a language abbreviation to the url and serve the content based on that language.

I think these two are the most popular:
http://codeigniter.com/wiki/URI_Language_Identifier/
http://maestric.com/doc/php/codeigniter_i18n


How to make multi lang site - El Forum - 09-02-2009

[eluser]umefarooq[/eluser]
thanks for help let me have look on it if i found any problem ill put my question here.


How to make multi lang site - El Forum - 09-02-2009

[eluser]ebot[/eluser]
you can easily do that using smarty templating programming, i can mail some codes, if that can help. get in contact with me at ebot.tabi[at]gmail[dot]com


How to make multi lang site - El Forum - 09-02-2009

[eluser]Phil Sturgeon[/eluser]
How would smarty help?

Also, how multi-lingual does it need to be? Does the content need to be in different languages or just the site itself?

Does it need language auto-detection, or URL based?

Please be as specific as possible. :-)


How to make multi lang site - El Forum - 09-02-2009

[eluser]ebot[/eluser]
Phil,
i completed a social networking site using smarty templating at the front-end(view), it got a function that auto generate of languages. if you wish i can mail them to you. i am still looking on how to detect the browser's language then redirect to the appropriate language.