Language Loginscreen
-
Hi,
yes, but german is the first language set in browser preference.
-
hi tommi,
I thought to have the same issue. After Upgrading to 3.4.20.1690+74.1 my welcome screen suddenly was english.
But after restarting Kopano-server - now its german again.
Have you tried a simple restart? -
Hi,
yes I restarted Kopano and apache.
-
As a workaround you can set the fallback language to German:
https://documentation.kopano.io/webapp_admin_manual/config.html#default-language-and-fallback-language -
Hi marty,
yes I know but I like to figure out why webapp behave like this. maybe i have overseen something or there is really a bug.
It is not so annoying because after login the language is correct. -
Hi tommi,
I have the same problem for a long time already
it concerns checks the initialization of the language before the login, after the login it’s ok.
The error in apache log give this outUnknown language: ‘de_DE’, referer: https://xxx.xxx/webapp/
no matter what I adjust in the config.php it always comes the same error (en_GB etc …)
this is a mistake but apparently does not demand so much attention;)thanks
-
I think it’s a bug in WebApp. I see a difference in the cookie and the language set by the admin.
On a test server could you change the line above
https://stash.kopano.io/projects/KW/repos/kopano-webapp/browse/index.php#87and add
$lang = $Language->resolveLanguage($lang);
It should then look like
// Get language from the cookie, or from the language that is set by the admin $Language = new Language(); $lang = isset($_COOKIE['lang']) ? $_COOKIE['lang'] : LANG; $lang = $Language->resolveLanguage($lang); $Language->setLanguage($lang);
Let me know if this works
-
thanks @marty
I made this adjustment in the webapp config.php
<------>// Location to the translations
<------>define(“LANGUAGE_DIR”, “server/language/”);<------>// Defines the default interface language. This can be overridden by the user.
<------>if (isset($_ENV[‘LANG’]) && $_ENV[‘LANG’]!=“C”){
<------><------>define(‘LANG’, $_ENV[“LANG”]); // This means the server environment language determines the web client language.
<------>}else{
<------><------>define(‘LANG’, ‘de_DE’); // default fallback language
<------>}
and your entry in the index.php and it works now finally (after all the years;) thank you very much!!!
Can I safely set this up in my productive environment?thanks!!!
-
Hi @Sinux ,
I commited the index.php fix in webapp master (https://stash.kopano.io/projects/KW/repos/kopano-webapp/commits/6e8dcb5ecd5db270615dc2d6ae4c57158c7ddfa4)
It will end up in the 3.5.3 release.
-
good news, thanks man ;)