touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #22578
[Bug 1175726] Re: [i18n] i18n.language should return LANG, not LANGUAGE
** Changed in: ubuntu-ui-toolkit
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ubuntu-ui-toolkit in
Ubuntu.
https://bugs.launchpad.net/bugs/1175726
Title:
[i18n] i18n.language should return LANG, not LANGUAGE
Status in Ubuntu UI Toolkit:
Fix Released
Status in “ubuntu-ui-toolkit” package in Ubuntu:
Fix Released
Bug description:
Currently, invoking i18n.language returns the value of the LANGUAGE
environment variable.
LANGUAGE is a gettext locale extension and it is not supported by all
toolkits. Its format is a prioritized list of languages separated by
semicolon (e.g. ca:de:it) [1], which is not understood when passed to
Qt locale functions.
Furthermore, it is not always defined, so in most cases, the result of
invoking i18n.language will be an empty string.
It might be better to return the value of the LANG variable [2],
defined in /etc/default/locale. Or for a more clever solution, if
LC_MESSAGES is defined, return LC_MESSAGES and thus comply with the
standard whereby LC_* variables override LANG if they are defined.
[1]: http://www.gnu.org/software/gettext/manual/html_node/The-LANGUAGE-variable.html#The-LANGUAGE-variable
[2]: http://www.gnu.org/software/gettext/manual/html_node/Locale-Environment-Variables.html#Locale-Environment-Variables
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1175726/+subscriptions