Choose language via GUI
Issue #211
open
Originally reported on Google Code with ID 211
Currently, the language can only be chosen via config-directive $language.
In an environment with multiple users with different mother tongues, it might be useful
to choose the language when logging in or even after being logged in.
Reported by crazy4chrissi
on 2013-04-16 11:56:40
Comments (2)
-
Account Deleted -
reporter I agree automatically detecting the language would be nice. But still I would give the user the possibility to choose another language. Assume you are on holiday in some other country and use a computer there and it sets some language in HTTP_ACCEPT_LANGUAGE that you don't speak. You'd like to change the language. So what I would propose: 1. If there is a language file for the language set in HTTP_ACCEPT_LANGUAGE, us this 2. If there is no file for the language set in http, use the default language as defined in $language (if this does not exist, use English) 3. The user can still choose another language at any time. If he does, store this language into a cookie and use this from now on. Regarding dialects: As long as there are no translations for dialects, we don't need to support them. And I don't expect them to come too soon. As far as I know, in HTTP_ACCEPT_LANGUAGE you can give multiple languages. So we should not only check the first. If we don't have a file for the first one, we should continue with the next one. Also we need to be careful with HTTP_ACCEPT_LANGUAGE as it is user-input. You only use the first 2 characters, so I currently can't think of a way to exploit this. Stuff like '/.' could end up here, but would not hurt much. But we need to be aware that this is user input and might be malicious.
Reported by
crazy4chrissi
on 2013-04-26 13:48:05 - Log in to comment
Reported by
franco7tassi
on 2013-04-26 13:17:59