Bug#404974: glade: Causes unknown file to be referenced in pot translation files

Neil Williams codehelp at debian.org
Fri Dec 29 20:44:55 UTC 2006


Package: glade-gnome
Version: 2.12.1-7
Severity: minor
Tags: l10n

See bug #404969 for the background on this report. Glade appears to be
referencing a file that does not exist. The file gets listed in the .pot
file for the project when it is not referenced or listed in any of the
glade files or other project files.

e.g. for the project deb-gview, the pot file contains numerous
references to ../deb-gview.glade.h when no such file exists.

CVS for deb-gview: 
http://alioth.debian.org/plugins/scmcvs/cvsweb.php/dpkg-view/?cvsroot=dpkg-view

This came to light because I put a string in the Translated By field for
an AboutDialog. When this field is empty, glade generates the gettext
markup in src/interface.c - if the field contains any content, glade
puts that content into src/interface.c but does not mark the string for
translation - YET, because of this mysterious deb-gview.glade.h "file",
the entered string DOES appear in the .pot file and in the .po files,
but it can never be accessed in the application because the executable
cannot find the unknown file, foo.glade.h

This error is completely silent, until a translator notices that the
application does not specify their name under About|Credits|Translators.
No build errors, no runtime errors to the console, nothing.

After removing the content from the field in the GUI and rebuilding the
glade components, the .pot file still contains references to the missing
file:

#. TRANSLATORS: Replace this string with your names, one name per line.
#: ../src/interface.c:46 ../deb-gview.glade.h:16
msgid "translator-credits"
msgstr ""

$ pwd
/opt/working/deb-gview/po
$  ls ../deb-gview.glade.h
ls: ../deb-gview.glade.h: No such file or directory

$ grep -c "deb-gview.glade.h" *.po*
deb-gview.pot:14
en_GB.po:14
fr.po:14

The glade files used by deb-gview are in CVS, URL above.

I can attach them here, if requested.

-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-amd64-k8
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages glade-gnome depends on:
ii  glade-common              2.12.1-7       Common files for GTK+ 2 User Inter
ii  gnome-common              2.12.0-2       common scripts and macros to devel
ii  libart-2.0-2              2.3.17-1       Library of functions for 2D graphi
ii  libatk1.0-0               1.12.3-1       The ATK accessibility toolkit
ii  libaudiofile0             0.2.6-6        Open-source version of SGI's audio
ii  libavahi-client3          0.6.15-2       Avahi client library
ii  libavahi-common3          0.6.15-2       Avahi common library
ii  libavahi-glib1            0.6.15-2       Avahi glib integration library
ii  libbonobo2-0              2.14.0-3       Bonobo CORBA interfaces library
ii  libbonoboui2-0            2.14.0-5       The Bonobo UI library
ii  libc6                     2.3.6.ds1-9    GNU C Library: Shared libraries
ii  libcairo2                 1.2.4-4        The Cairo 2D vector graphics libra
ii  libdbus-1-3               1.0.2-1        simple interprocess messaging syst
ii  libesd0                   0.2.36-3       Enlightened Sound Daemon - Shared 
ii  libfontconfig1            2.4.2-1        generic font configuration library
ii  libfreetype6              2.2.1-5        FreeType 2 font engine, shared lib
ii  libgail-gnome-module      1.1.3-3        GNOME Accessibility Implementation
ii  libgconf2-4               2.16.0-3       GNOME configuration database syste
ii  libgcrypt11               1.2.3-2        LGPL Crypto library - runtime libr
ii  libglib2.0-0              2.12.6-1       The GLib library of C routines
ii  libgnome-keyring0         0.6.0-3        GNOME keyring services library
ii  libgnome2-0               2.16.0-2       The GNOME 2 library - runtime file
ii  libgnomecanvas2-0         2.14.0-2       A powerful object-oriented display
ii  libgnomeui-0              2.14.1-2+b1    The GNOME 2 libraries (User Interf
ii  libgnomevfs2-0            2.14.2-4       GNOME virtual file-system (runtime
ii  libgnutls13               1.4.4-3        the GNU TLS library - runtime libr
ii  libgpg-error0             1.4-2          library for common error values an
ii  libgtk2.0-0               2.8.20-3       The GTK+ graphical user interface 
ii  libice6                   1:1.0.1-2      X11 Inter-Client Exchange library
ii  libjpeg62                 6b-13          The Independent JPEG Group's JPEG 
ii  liborbit2                 1:2.14.4-1     libraries for ORBit2 - a CORBA ORB
ii  libpango1.0-0             1.14.8-3       Layout and rendering of internatio
ii  libpng12-0                1.2.15~beta5-1 PNG library - runtime
ii  libpopt0                  1.10-3         lib for parsing cmdline parameters
ii  libsm6                    1:1.0.1-3      X11 Session Management library
ii  libtasn1-3                0.3.6-2        Manage ASN.1 structures (runtime)
ii  libx11-6                  2:1.0.3-4      X11 client-side library
ii  libxcursor1               1.1.7-4        X cursor management library
ii  libxext6                  1:1.0.1-2      X11 miscellaneous extension librar
ii  libxfixes3                1:4.0.1-5      X11 miscellaneous 'fixes' extensio
ii  libxi6                    1:1.0.1-4      X11 Input extension library
ii  libxinerama1              1:1.0.1-4.1    X11 Xinerama extension library
ii  libxml2                   2.6.27.dfsg-1  GNOME XML library
ii  libxrandr2                2:1.1.0.2-5    X11 RandR extension library
ii  libxrender1               1:0.9.1-3      X Rendering Extension client libra
ii  zlib1g                    1:1.2.3-13     compression library - runtime

Versions of packages glade-gnome recommends:
ii  autoconf                     2.61-3      automatic configure script builder
pn  automake1.4                  <none>      (no description available)
ii  gettext                      0.16.1-1    GNU Internationalization utilities
ii  libgail17                    1.8.11-4    GNOME Accessibility Implementation
ii  libgnomeui-dev               2.14.1-2+b1 The GNOME 2 libraries (User Interf

-- no debconf information





More information about the pkg-gnome-maintainers mailing list