always in english, even after changing locale
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
slim (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
Binary package hint: slim
The display manager does not take into account the language of the system
Here is the command to change the locale :
$ sudo update-locale LANG=fr_FR.UTF-8
$ cat /etc/default/locale
LANG=fr_FR.UTF-8
(or you can use package "language-selector" to change the language)
But this change is not taken into account by Slim, because it does not read "/etc/default/
I compared with what is done by gdm for the localization
Here is the part of the code taken from "/etc/init.d/gdm" and injected in "/etc/init.d/slim"
It simply works as expected.
Please provide a fixed package for Hardy and future releases.
--- a/etc/init.d/slim 2008-05-23 00:00:00.000000000 +0200
+++ b/etc/init.d/slim 2008-05-24 00:59:32.000000000 +0200
@@ -24,6 +24,14 @@
SSD_START_
SSD_STOP_
+if [ -r /etc/default/locale ]; then
+ . /etc/default/locale
+ export LANG LANGUAGE
+elif [ -r /etc/environment ]; then
+ . /etc/environment
+ export LANG LANGUAGE
+fi
+
case $1 in
start)
if [ "$HEED_
Is anyone else able to reproduce this bug?