View Single Post
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#16
NOkia put it there.
duicontrolpanel-displaylanguageapplet: /etc/profile.d/language.sh
~ $ cat /etc/profile.d/language.sh
#!/bin/sh

langdata=$(gconftool -g /meegotouch/i18n/language)
# default
langid=en_US.UTF-8

if [ -n $langdata ]; then
# remove everything after a @ including the @ itself because
# the options after @ in libicu locale names like
# zh_CN@collation=stroke do not make sense for the POSIX locales:
langid=${langdata%%@*}
# some conversion needs from libicu ids to posix ids
if [ "$langid" == "en" ]; then
langid=en_GB
elif [ "$langid" == "zh" ]; then
langid=zh_CN
elif [ "$langid" == "es_419" ]; then
langid="es_MX"
fi
fi
unset LC_ALL
export LANG=$langid
~ $
And even my output of
echo $LC_ALL
is empty, I have no such problems.

~ $ echo $langdata
en_US
~ $ echo $langid
en_US
~ $ echo $LC_ALL

~ $ echo $LANG
en_US
~ $ echo $LANGUAGE

~ $
My language is set to english and region to Germany
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature

Last edited by peterleinchen; 2013-10-30 at 23:12.