Hi Leon!

I'm attaching a patch against the current version of the kde-workspace
package in Debian and Ubuntu which adds a language selector to kdm. This
allows you to select the language for the session at login time and with
the hvelp of a few lines in your Xsession file, you are getting the
proper environment variables set for your preferred language.

With the patch applied, kdm will set the environment variable KDM_LANG
according to the selection you made in the popup menu on the greeter
screen. Just add the following lines to /etc/kde4/kdm/Xsession to use
the value of KDM_LANG to set the environment variables for LANG,
LANGUAGE and LC_ALL:

if [ -n "$KDM_LANG" ] ; then
    LANGUAGE="$KDM_LANG"
    LANG="$KDM_LANG"
    LC_ALL="$KDM_LANG"
    export LANGUAGE
    export LANG
    export LC_ALL
fi

Please note that the list of languages available in the selector is
currently hard-coded in kdm/kfrontend/kgreeter.cpp.

For more details, see my detailed explanation in the corresponding bug
report in Debian [1].

Adrian

> [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=789689

** Bug watch added: Debian Bug tracker #789689
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=789689

** Patch added: "Patch to implement a language selector in kdm"
   
https://bugs.launchpad.net/ubuntu/+source/kde-workspace/+bug/1423995/+attachment/4419379/+files/kdm_add_language-selecter.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1423995

Title:
  LANGUAGE is set incorrectly in ~/.kde/env/setlocale.sh

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kde-workspace/+bug/1423995/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to