[Bug 1253050] Re: localechooser set wrong language
Ara Pulido
ara at ubuntu.com
Thu Nov 28 10:53:58 UTC 2013
Bin, please,
add to this bug:
[Steps to reproduce]
[Expected behaviour]
[Actual behaviour]
[Version of Ubuntu used to reproduce]
[Does this happen in the development version (Trusty)?]
** Changed in: localechooser (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to localechooser in Ubuntu.
https://bugs.launchpad.net/bugs/1253050
Title:
localechooser set wrong language
Status in localechooser:
New
Status in OEM Priority Project:
New
Status in “localechooser” package in Ubuntu:
Incomplete
Bug description:
When I use ubiquity, I found the tpl_di_language is set a wrong value "en_US:", after dig it I found when LANGUAGELIST is null, it will be set to this value.
Another question is why we set 'en_US' in language, while not 'en', when I use get_current_language, it will return null when the language is 'en_US'.
33) # We have a locale
# Display system locale selection on backup or rerun
db_fset $tpl_di_locale seen false || true
db_get $tpl_di_locale
log "System locale ($tpl_di_locale) = '$RET'"
# The code below adds lang_COUNTRY at the beginning of the
# language list we got from language selection, unless it's
# already included or no locale exists for the combination.
if [ "$askedpreflocale" ]; then
extra_lang=$(echo "$LOCALE" | sed -e 's/[.@].*$//')
else
extra_lang=${LANGUAGE%%_*}_$COUNTRYCODE
fi
if [ "$LOCALE" != C ] && \
[ "$LANGUAGE" ] && [ "$COUNTRYCODE" ] && \
[ "$COUNTRYCODE" != "$DEFAULT_COUNTRY" ] && \
! echo ":$LANGUAGELIST:" | grep -q ":$extra_lang:" && \
grep -q "^$extra_lang" $SUPPORTEDLOCALES; then
LANGUAGELIST=$extra_lang:$LANGUAGELIST
db_set "$tpl_di_language" "$LANGUAGELIST"
log "Set $tpl_di_language = '$LANGUAGELIST'"
set_debconf_language "$LANGUAGELIST"
To manage notifications about this bug go to:
https://bugs.launchpad.net/localechooser/+bug/1253050/+subscriptions
More information about the foundations-bugs
mailing list