-
Notifications
You must be signed in to change notification settings - Fork 82
Force language on foreign environment #590
Comments
Please change default language in bootstrap.php and config/site.php. I think it'll be sufficient. |
Kohana::init(array(
'autolocale' => FALSE
));
I18n::$lang = 'en';
|
@sandeepone Not needed to modify config file |
@sergeyklay Perhaps we're not using this methods i just noticed. |
@sandeepone Hence we have 2 methods to solve this issue :) |
@sergeyklay if |
Yes, but |
Sergey is right. This should be added in bootstrap.php; example for French: /**
Thank you guys, I have all your answers stored in my email box, but, again, I think that all these should be referenced somewhere in the wiki or FAQ so that others can better use your nice work. |
@Opariti Thank you. We're working on bootstrap 3.x version, once we're done, we'll be adding all this info in wiki. It would be more helpful if you could share your french locale, we can add with rest of the locales. @sergeyklay i know I'll keep this issue open until we cleanup the code and make it more mature. |
@sandeepone Let's quickly go to BS3 :) |
I have a site in French, just by creating the application/i18n/fr.php translation file. The whole site, loaded on a hosted server, shows-up in French as soon as I'm using OS/keyboard in French.
If I access the site from a en_US OS (Windows 7, Chrome)/keyboard, the translation is not performed. How can I force the use of French from the en_US (or any non-French) computer? Thx
The text was updated successfully, but these errors were encountered: