3212 Posts in 847 Topics by 809 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 881 Views |
-
Multilingual WebSite

10 June 2010 at 8:39am
Hello, guys.
I was managed to do multilingual website, everything works perfect, but locale switchingI have 2 files en_US.php and ru_RU.php in mysite/lang/ folder there're some params for templates, like:
$lang['en_US']['Page.ss']['BTN_FEEDBACK'] = 'feedback'; inside en_US.php
when i changing language of website content is changing and function Translatable::get_current_locale() returns en_US, content is changing, but those variables are still taken from ru_RU.php file.
I tried to add self::set_current_locale(Translatable::get_current_locale()); in Page_Controller->init(); and nothing has changed
-
Re: Multilingual WebSite

10 June 2010 at 8:42am
Sorry, just solved that problem =)
i18n::set_locale(Translatable::get_current_locale());
| 881 Views | ||
|
Page:
1
|
Go to Top |

