CodeIgniter Forums
Two languages - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Two languages (/showthread.php?tid=16692)



Two languages - El Forum - 03-14-2009

[eluser]mDonchev[/eluser]
Hello All,

I have a two language website (teetime.bg) which has English and Bulgarian languages.
The default one is Bulgarian.

I'm storing the chosen language in a session variable and by that I'm displaying one content or another.

I would like to be able to put that language variable ("en" or "bg") in the URL somehow, so that when you get a link and send it to a friend the current language version to be displayed instead of the default one.

Can you tell me a smarter way to do that, instead of manually put it in each link in the website?

Thanks for your help in advance,

Martin


Two languages - El Forum - 03-14-2009

[eluser]pistolPete[/eluser]
Did you have a look at the wiki?
http://codeigniter.com/wiki/Category:Internationalization/