YaST/Documentation/Locale

From openSUSE

The goal is to make YaST behave like other normal programs.

  • If LANG is empty read /etc/sysconfig/language. (This is simply odd and obscure. Normally LANG is not empty.)
  • For Qt/Gtk:
    • Don't further fiddle with environment.
  • For NCurses:
    • For linux console:
      • For ja, ko, zh switch to en_US.UTF-8. (This is required since NCurses does not work reasonable with those languages.)
      • Add .UTF-8 modifiers. (This could be removed since it's a setup error if the modifiers are initially wrong. But with ROOT_USES_LANG!="yes" the setup can be a bit broken.)
    • For terminals:
      • Check with testutf8 and add/remove .UTF-8 modifiers. (This could be removed since it's a setup error if the modifiers are initially wrong.)

If you want YaST to use a different language than your locale settings just define an alias, e.g.:

 alias yast2="LANG=cs_CZ.UTF-8 /sbin/yast2"