intltool-update thinks __import__('<module>') is a translation

Bug #498292 reported by Guillermo Gonzalez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
intltool
Fix Released
Low
Данило Шеган

Bug Description

In python file that uses __import__ statement, I get:

The following files contain translations and are currently not in use. Please
consider adding these to the POTFILES.in file, located in the po/ directory.

tests/syncdaemon/test_hashqueue.py

If some of these files are left out on purpose then please add them to
POTFILES.skip instead of POTFILES.in. A file 'missing' containing this list
of left out files has been written in the current directory.

Related branches

Revision history for this message
Данило Шеган (danilo) wrote :

I've improved the regular expression detecting this to be smarter.

Changed in intltool:
assignee: nobody → Данило Шеган (danilo)
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Данило Шеган (danilo) wrote :

Fixed in lp:intltool r702: please let me know if it works fine.

Changed in intltool:
status: Triaged → Fix Committed
Revision history for this message
Jon TURNEY (jon-turney) wrote :

This change in r702 seems to have broken things for xkeyboard-config.

Making check in po
make[1]: Entering directory `/opt/wip/jhbuild/build/xkeyboard-config/po'
rm -f missing notexist
srcdir=/opt/wip/jhbuild/git/xkeyboard-config/po /usr/bin/intltool-update -m
Unmatched [ in regex; marked by <-- HERE in m/(NC_|[NCQ]_|[^_]_|XtResource resources[ <-- HERE ] =
) *\(QUOTEDTEXT/ at /usr/bin/intltool-update line 519, <FILE> line 45.
make[1]: *** [check] Error 9

Revision history for this message
Данило Шеган (danilo) wrote :

That should be fixed in r703 now.

Changed in intltool:
milestone: none → 0.41.1
Revision history for this message
Jon TURNEY (jon-turney) wrote :

Yep, that fixes my problem, thanks :-)

Changed in intltool:
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.