Python scripts without .py extensions are treated as C files
Bug #547073 reported by
David Planella
This bug report is a duplicate of:
Bug #377872: having a way to specify a source format in the potfiles list would be nice.
Edit
Remove
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
To post a comment you must log in.
Yes, it's a consequence of bug 377872, meaning that it's a duplicate :)