Multilingual i18n enviroment for CodeIgniter |
[eluser]Volder[/eluser]
Is there a way to change the language inside controller disregarding of the URL we came there? For example for my /rss/ I want to use English always (while German is the default). So when I access mysite.com/rss/ - english should be used. I want to change the language inside RSS controller (question is it possible and how?), and then use lang() that would return English headings. Thanks!
[eluser]keevitaja[/eluser]
perhaps reading config helpfile? http://ellislab.com/codeigniter/user-gui...onfig.html
[eluser]Volder[/eluser]
[quote author="keevitaja" date="1360284977"]perhaps reading config helpfile? http://ellislab.com/codeigniter/user-gui...onfig.html[/quote] It's not that easy. I was trying Code: $this->config->set_item('language', 'english'); Finally I found this thread http://ellislab.com/forums/viewthread/165998/ and added reload() method to MY_Lang library, and then it worked fine.
[eluser]Unknown[/eluser]
Hi EDIT: Never mind, i didnt include Code: $this->load->helper('url'); I'm using your library. I get this error trying to print a bar Code: Fatal error: Call to undefined function anchor() in E:\xampp\htdocs\MyApp\application\core\MY_Lang.php on line 85
|
Welcome Guest, Not a member yet? Register Sign In |