Python scripts without .py extensions are treated as C files

Bug #547073 reported by David Planella
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
intltool
New
Undecided
Unassigned

Bug Description

The file format of extensionless files cannot be specified in intltool, and they are interpreted as C files by default.

This causes, for example, 'Foo' strings in extensionless Python scripts not to be extracted (they must be specified as valid C strings with double quotes, e.g. "Foo" to be recognized for extraction).

The other problem is that strings containing arguments are then either not recognized as python-format (they are marked as c-format) or worse, not marked as python-format at all (e.g. those with named arguments "%(foo)s").

This is somehow related (perhaps a consequence) of bug 377872

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

Yes, it's a consequence of bug 377872, meaning that it's a duplicate :)

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.