• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating a multilingual website

#1
[eluser]Mahn[/eluser]
Hello,

I'm having some problems in creating a multilingual website. I have all of my language files ready in separate folders inside the application/language folder. For every bit of text on the webiste, I'm doing
Code:
echo lang('general_welcome_message');

So now I want to give users the option to change language and store that in a cookie.

Any ideas on how I should go about doing that?

Thanks!

#2
[eluser]WanWizard[/eluser]
Code:
$this->config->set_item('language', 'your_language_here');
before you load any language files. You can fetch that value from a cookie if you want, or from the session.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.