core icon indicating copy to clipboard operation
core copied to clipboard

Hungarian language preference not recognized on the login page

Open torlasz opened this issue 13 years ago • 2 comments

The login page appears with words in English, even if you set Hungarian as the preferred language in your browser. I was able to fix this problem by symlinking core/l10n/hu_HU.php to core/l10n/hu.php. The reason for this is that browsers indicate language preference by sending the 'Accept-Language' http header with the value of 'hu', while all Hungarian translations appear in OC with the language code 'hu_HU'. I think this problem may pop up with other languages too. The best way to fix this is to use any 'l10n/nn_xx'.php files if 'l10n/nn.php' is not available and the language preference is just 'nn'. I am not an internationalization expert, but I guess this is how it is expected to be done anyway.

torlasz avatar Jan 20 '13 15:01 torlasz

this has been fixed for OC5 with #766

DeepDiver1975 avatar Jan 21 '13 11:01 DeepDiver1975

fixed with #1253 for stable45 will be shipped with 4.5.6

DeepDiver1975 avatar Jan 21 '13 11:01 DeepDiver1975