YaST2 and Language settings
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
Togan Muftuoglu <toganm@dinamizm.com> さんは書きました:
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"
DEFAULT_LANGUAGE is already obsolete in SuSE Linux 8.1, it has just been forgotten to remove it. DEFAULT_LANGUAGE was only used by YaST1 in SuSE Linux <= 8.0.
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
Unfortunately YaST2 only uses LANG and no other LC_* variables, i.e. it doesn't use LC_MESSAGES. In my opinion, this is a YaST2 bug. I'll will forward this to the YaST2 developers.
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 ?
Currently I see no other way to do it. In future, YaST2 should be fixed to use LC_MESSAGES as well. -- Mike Fabian <mfabian@suse.de> http://www.suse.de/~mfabian 睡眠不足はいい仕事の敵だ。
participants (2)
-
Mike FABIAN
-
Togan Muftuoglu