Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

getDefaultLanguage() returns an invalid value #1417

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 3 comments
Closed

getDefaultLanguage() returns an invalid value #1417

openstreetmap-trac opened this issue Jul 23, 2021 · 3 comments

Comments

@openstreetmap-trac
Copy link

Reporter: deejay1
[Submitted to the original trac issue database at 6.56pm, Friday, 19th December 2008]

getDefaultLanguage() returns an invalid value if the UI language is taken from the environment (LANG,LC_ALL, etc variables) and the because of that tag values in the tag templates aren't translated properly. Proposed patch attached, if it's OK I'll apply it to svn

@openstreetmap-trac
Copy link
Author

Author: deejay1
[Added to the original trac issue at 8.29am, Saturday, 20th December 2008]

After some though^H^H^Hsleep I've noticed that this won't work with locales like en_GB. One possible solution would be to check first for the complete locale name, eg "pl_PL" and then for the language part "pl"...

@openstreetmap-trac
Copy link
Author

Author: koying
[Added to the original trac issue at 1.49pm, Wednesday, 14th January 2009]

(In [13206]) FIX : getDefaultLanguage() returns an invalid value with 2-parts language
definition (like en_GB) (by Lukasz Jernas) (closes #1417)

@openstreetmap-trac
Copy link
Author

Author: deejay1
[Added to the original trac issue at 6.01pm, Wednesday, 14th January 2009]

Erm, as I said before - this patch doesn't cover most relevant cases and needs some additional work...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant