Support py.in for intltool-update -m
Bug #493403 reported by
fujiwara
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
intltool |
Fix Released
|
Low
|
Данило Шеган |
Bug Description
Currently a lot of sources provide "foo.py.in" files to convert to "foo.py" with configure so I think it would be useful to support "py.in" file extension when you run "intltool-update -m"
To reproduce:
% mkdir po
% cd po
% cat >> ../foo.py.in <<_EOF
#!/usr/bin/python
# Translators: %(name)s and %(value)s should not be translated:
# it's a way to identify a string, so just handle them like %s
print _("%(name)s: %(value)s") % infos_dict
_EOF
% touch POTFILES.in
% intltool-update -m
Then the file is not detected by 'intltool-update -m'.
I'm attaching the patch.
Related branches
Changed in intltool: | |
milestone: | none → 0.41.1 |
Changed in intltool: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Thanks for the patch. While it seems good, I wonder what those "lot of sources" are that would benefit from it?
Also, there is one concern I have: you are listing this format as having builtin support in gettext: does xgettext correctly pick up python-format as the syntax for such files?