GtkBuilder *.ui files are not recognized for translation extraction

Bug #451170 reported by David Planella
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-distutils-extra (Ubuntu)
Fix Released
Medium
Martin Pitt

Bug Description

Binary package hint: python-distutils-extra

While trying to fix bug 449411 in the onboard package, I noticed that using the auto module in setup.py GtkBuilder .ui files are not recognized for translation extraction, and thus their strings marked as translatable are not extracted and merged into the POT template.

Additional comments from Martin on IRC:

<pitti> if '<interface>\n' in contents and '<requires lib="gtk+"' in contents:
                     files.add('[type: gettext/glade]' + f)
<pitti> dpm: ^ that's my check if it's a GTKBuilder file (since Qt also uses *.ui)
<pitti> but your's has
 <interface domain="onboard">

Martin Pitt (pitti)
Changed in python-distutils-extra (Ubuntu):
assignee: nobody → Martin Pitt (pitti)
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

r141

Changed in python-distutils-extra (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-distutils-extra - 2.12

---------------
python-distutils-extra (2.12) unstable; urgency=low

  * auto.py: Auto-install GtkBuilder files which have attributes in the
    <interface> tag.
  * auto.py: Extract translatable strings from GtkBuilder files which have
    attributes in the <interface> tag. (LP: #451170)
  * auto.py: Properly handle *.{desktop,notifyrc}.in files in data/.
    (LP: #451175)

 -- Martin Pitt <email address hidden> Wed, 14 Oct 2009 13:53:43 +0200

Changed in python-distutils-extra (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.