Bug#310888: gdm: Wrong description in login languages menu: English (Denmark) for locale en_IE

Jaume Jaume <jgiemail-debian@yahoo.es>, 310888@bugs.debian.org
Thu, 26 May 2005 20:29:45 +0200


This is a multi-part MIME message sent by reportbug.

--===============0848694709==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: gdm
Version: 2.6.0.8-1
Severity: minor
Tags: patch

Dear Debian developers,

I have gdm, and have several locales generated in my computer. Among them "en_IE", 
which corresponds to English (Ireland). 

I the gdm login screen, I can select the "languages" menu, and a list of available locales
with description appears. Among them:

English (Denmark) en_IE

Expected behaviour: This language option should read:

English (Ireland) (en_IE)

I have found a wrong line in the source file gui/gdmlanguages.c. After aplying the following
one-line patch, gdm shows the expected behaviour.

diff -Nru gdm-2.6.0.8-orig/gui/gdmlanguages.c gdm-2.6.0.8/gui/gdmlanguages.c
--- gdm-2.6.0.8-orig/gui/gdmlanguages.c 2005-05-26 20:03:12.000000000 +0200
+++ gdm-2.6.0.8/gui/gdmlanguages.c      2005-05-26 20:06:29.000000000 +0200
@@ -102,7 +102,7 @@
        /*Note translate the A-M to the A-M you used in the group label */
        { N_("A-M|English (Ireland)"), "en_IE", "Irish English", 0 },
        /*Note translate the A-M to the A-M you used in the group label */
-       { N_("A-M|English (Denmark)"), "en_IE", "Danish English", 0 },
+       { N_("A-M|English (Denmark)"), "en_DK", "Danish English", 0 },
        /*Note translate the A-M to the A-M you used in the group label */
        { N_("A-M|English (South Africa)"), "en_ZA", "South African English", 0 },
        /*Note translate the A-M to the A-M you used in the group label */

en_DK is an existing locale, as shown e.g. by:
$ dlocate /usr/share/i18n/locales/en_DK
locales: /usr/share/i18n/locales/en_DK

Best regards, and thank you for your work,

Jaume

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing'), (110, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.11-1-686-smp
Locale: LANG=C, LC_CTYPE=en_IE@euro (charmap=ISO-8859-15)

Versions of packages gdm depends on:
ii  adduser                  3.63            Add and remove users and groups
ii  debconf                  1.4.30.13       Debian configuration management sy
ii  dpkg                     1.10.27         Package maintenance system for Deb
ii  fvwm [x-window-manager]  2.5.12-5        F(?) Virtual Window Manager, versi
ii  gksu                     1.2.5-3         graphical frontend to su
ii  gnome-session            2.8.1-6.0.1     The GNOME 2 Session Manager
ii  gnome-terminal [x-termin 2.8.2-2         The GNOME 2 terminal emulator appl
ii  libart-2.0-2             2.3.17-1        Library of functions for 2D graphi
ii  libatk1.0-0              1.8.0-4         The ATK accessibility toolkit
ii  libattr1                 2.4.16-1        Extended attribute shared library
ii  libbonobo2-0             2.8.1-2         Bonobo CORBA interfaces library
ii  libbonoboui2-0           2.8.1-2         The Bonobo UI library
ii  libc6                    2.3.2.ds1-22    GNU C Library: Shared libraries an
ii  libgconf2-4              2.8.1-6         GNOME configuration database syste
ii  libglade2-0              1:2.4.2-2       library to load .glade files at ru
ii  libglib2.0-0             2.6.4-1         The GLib library of C routines
ii  libgnome2-0              2.8.1-2         The GNOME 2 library - runtime file
ii  libgnomecanvas2-0        2.8.0-1         A powerful object-oriented display
ii  libgnomeui-0             2.8.1-3         The GNOME 2 libraries (User Interf
ii  libgnomevfs2-0           2.8.4-4         The GNOME virtual file-system libr
ii  libgtk2.0-0              2.6.4-1         The GTK+ graphical user interface 
ii  libice6                  4.3.0.dfsg.1-13 Inter-Client Exchange library
ii  liborbit2                1:2.12.2-1      libraries for ORBit2 - a CORBA ORB
ii  libpam-modules           0.76-22         Pluggable Authentication Modules f
ii  libpam-runtime           0.76-22         Runtime support for the PAM librar
ii  libpam0g                 0.76-22         Pluggable Authentication Modules l
ii  libpango1.0-0            1.8.1-1         Layout and rendering of internatio
ii  libpopt0                 1.7-5           lib for parsing cmdline parameters
ii  librsvg2-2               2.8.1-3         SAX-based renderer library for SVG
ii  libselinux1              1.22-1          SELinux shared libraries
ii  libsm6                   4.3.0.dfsg.1-13 X Window System Session Management
ii  libwrap0                 7.6.dbs-8       Wietse Venema's TCP wrappers libra
ii  libx11-6                 4.3.0.dfsg.1-13 X Window System protocol client li
ii  libxext6                 4.3.0.dfsg.1-13 X Window System miscellaneous exte
ii  libxi6                   4.3.0.dfsg.1-13 X Window System Input extension li
ii  libxml2                  2.6.16-7        GNOME XML library
ii  metacity [x-window-manag 1:2.8.8-1       A lightweight GTK2 based Window Ma
ii  openbox [x-window-manage 3.2-7           standards compliant, fast, light-w
ii  rxvt [x-terminal-emulato 1:2.6.4-6.2     VT102 terminal emulator for the X 
ii  twm [x-window-manager]   4.3.0.dfsg.1-13 Tab window manager
ii  xbase-clients            4.3.0.dfsg.1-13 miscellaneous X clients
ii  xlibs                    4.3.0.dfsg.1-13 X Keyboard Extension (XKB) configu
ii  xterm [x-terminal-emulat 4.3.0.dfsg.1-13 X terminal emulator
ii  zlib1g                   1:1.2.2-4       compression library - runtime

-- debconf information:
  gdm/daemon_name: /usr/bin/gdm
* shared/default-x-display-manager: gdm

--===============0848694709==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="patch.txt"

diff -Nru gdm-2.6.0.8-orig/gui/gdmlanguages.c gdm-2.6.0.8/gui/gdmlanguages.c
--- gdm-2.6.0.8-orig/gui/gdmlanguages.c	2005-05-26 20:03:12.000000000 +0200
+++ gdm-2.6.0.8/gui/gdmlanguages.c	2005-05-26 20:29:32.000000000 +0200
@@ -102,7 +102,7 @@
 	/*Note translate the A-M to the A-M you used in the group label */
 	{ N_("A-M|English (Ireland)"), "en_IE", "Irish English", 0 },
 	/*Note translate the A-M to the A-M you used in the group label */
-	{ N_("A-M|English (Denmark)"), "en_IE", "Danish English", 0 },
+	{ N_("A-M|English (Denmark)"), "en_DK", "Danish English", 0 },
 	/*Note translate the A-M to the A-M you used in the group label */
 	{ N_("A-M|English (South Africa)"), "en_ZA", "South African English", 0 },
 	/*Note translate the A-M to the A-M you used in the group label */

--===============0848694709==--