Mailinglist Archive: opensuse-m17n (14 mails)

< Previous Next >
YaST2 and Language settings
  • From: Togan Muftuoglu <toganm@xxxxxxxxxxxx>
  • Date: Tue, 26 Nov 2002 06:17:09 +0000 (UTC)
  • Message-id: <20021126061717.GA6951@xxxxxxxxxxxx>
Hi,

Seems like I do not understand how to set the language in
/etc/sysconfig/language so regardless of what is choosen there YaST2
will be in English.

here is what I have in /etc/sysconfig/language

DEFAULT_LANGUAGE="en_US"
RC_LANG="en_US"
ROOT_USES_LANG="no"

Now I have played with the above combo so many times yet I could not
reach to the point whre it behaves as I want it to be.

Locale settings for the user is so that messages will be in English
which has no meaning for YaST2
LANG=tr_TR.UTF-8
LC_MESSAGES=en_US

YaST2 gets its language settings from /etc/sysconfig/language
# set lang from sysconfig
set_lang_from_sysconfig

# use text mode if DISPLAY is not set or no qt plugin installed
if [ -z "$DISPLAY" ] || ! check_qt ; then
if check_ncurses ; then
case "$LANG" in
# if it is known that a language doesn't yet work well with
# ncurses
# use English instead:
ja*|ko*|zh*) export LANG=en_US ;;
esac


With the above settings YaST2 allways comes with a crap translation of
Turkish ( note that even it was an excellent translation I still want to
do my system administration in English). So I had to do a dirty hack
which solves the need but not an elegant way

# set lang from sysconfig
# Below closed so it does not read /etc/sysconfig/language
#set_lang_from_sysconfig
# Force English
export LANG=en_US


So the question is what is the correct way of achieving the same result
?

Thanks
--

Togan Muftuoglu
Unofficial SuSE FAQ Maintainer
http://dinamizm.ath.cx



< Previous Next >
List Navigation
Follow Ups