Bug#282526: libgtk2.0-0: i18n bug in itemfactory menu accelerators

Jason Dorje Short Jason Dorje Short <jdorje@users.sourceforge.net>, 282526@bugs.debian.org
Mon, 22 Nov 2004 15:10:34 -0500


Package: libgtk2.0-0
Version: 2.4.13-1
Severity: normal


If I use an itemfactory to create a menu, and give the menu 
accelerators (like "<shift>n" or "space" in the itemfactoryentry array) 
then these accelerators are shown on the menu (as "Shift+N" or 
"space").  However they are not translated!  In the above examples 
"Shift" and "space" should be translated ('N' should remain as 'N', of 
course).  It seems like only the GTK library can do this translation: 
translating it before passing the itemfactoryentry to GTK would not 
help matters.

Is this a bug in GTK?  Is there something different I can do to get 
these menu accelerators translated?

I know itemfactory is deprecated but this bug (if it is a bug) should 
still be fixed.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-1-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages libgtk2.0-0 depends on:
ii  libatk1.0-0               1.8.0-3        The ATK accessibility toolkit
ii  libc6                     2.3.2.ds1-18   GNU C Library: Shared libraries an
ii  libfontconfig1            2.2.3-4        generic font configuration library
ii  libfreetype6              2.1.7-2.3      FreeType 2 font engine, shared lib
ii  libglib2.0-0              2.4.7-1        The GLib library of C routines
ii  libgtk2.0-0               2.4.13-1       The GTK+ graphical user interface 
ii  libgtk2.0-bin             2.4.13-1       The programs for the GTK+ graphica
ii  libgtk2.0-common          2.4.13-1       Common files for the GTK+ graphica
ii  libjpeg62                 6b-9           The Independent JPEG Group's JPEG 
ii  libpango1.0-0             1.6.0-2        Layout and rendering of internatio
ii  libpng12-0                1.2.7-1        PNG library - runtime
ii  libtiff4                  3.6.1-3        Tag Image File Format library
ii  libx11-6                  4.3.0.dfsg.1-8 X Window System protocol client li
ii  libxcursor1               1.1.3-1        X cursor management library
ii  libxext6                  4.3.0.dfsg.1-8 X Window System miscellaneous exte
ii  libxft2                   2.1.2-6        FreeType-based font drawing librar
ii  libxi6                    4.3.0.dfsg.1-8 X Window System Input extension li
ii  libxrandr2                4.3.0.dfsg.1-8 X Window System Resize, Rotate and
ii  libxrender1               0.8.3-7        X Rendering Extension client libra
ii  xlibs                     4.3.0.dfsg.1-8 X Window System client libraries m
ii  zlib1g                    1:1.2.2-3      compression library - runtime

-- no debconf information