How can I override the default language set in the dashboard.
Permalink 2 users found helpful
My page is usually in German and it use the german messages.po by default. On some pages, I want that to use the English messages.po.
I thought that I achieve it with the following code:
What unfortunately is not the case.
Can you give me a tip?
Thanks
I thought that I achieve it with the following code:
Localization::changeLocale('en_US');
What unfortunately is not the case.
Can you give me a tip?
Thanks
By the way, probably an easier solution would be to just change the default language of that user account. Because you can have an account-specific language for the users.
Thanks, for your info.
Unfortunately, I also get no change with your file and the different languages has to apply to all users.
But if I use this code, then the language is changed:
Unfortunately, only after the second load.
Do you have any other advice?
Unfortunately, I also get no change with your file and the different languages has to apply to all users.
But if I use this code, then the language is changed:
Config::save('SITE_LOCALE', 'en_US');
Unfortunately, only after the second load.
Do you have any other advice?
Does anyone have any idea how I control the t-function [ t('string') ], so that I can select the output language of a page.
Localization::changeLocale('en_US')
In this language patch:
http://www.concrete5.org/developers/bugs/5-5-2-1/fix-that-not-trans...
You can find an updated version of the libraries/localization.php which should fix this.