msgfmt.py in the list of files to translate
Hi I asked this question quite some time ago: bin/msgfmt.py seems to be included in the list of file which are used for generating mailman.po. What is the purpose of that? Can we just remove it? Also many strings from it are just docstrings, they are in no way properly used. Would it be possible to at least make sure that the "useful" strings are included? Regards -- Misha
Mikhail Sobolev wrote:
Hi
Hi,
I asked this question quite some time ago: bin/msgfmt.py seems to be included in the list of file which are used for generating mailman.po. What is the purpose of that? Can we just remove it? Also many strings from it are just docstrings, they are in no way properly used. Would it be possible to at least make sure that the "useful" strings are included?
It is free that docstrings are left untranslated but at least they are useful if the site administrators want to use --help options or help() funcitons. I know translators want to put higher priority on member messages than admin messages or docstrings. It may be inconvenient but they are just mixed in the mailman.pot file. -- Tokio Kikuchi, tkikuchi@ is.kochi-u.ac.jp http://weather.is.kochi-u.ac.jp/
Tokio Kikuchi wrote:
It is free that docstrings are left untranslated but at least they are useful if the site administrators want to use --help options or help() funcitons. I know translators want to put higher priority on member messages than admin messages or docstrings. It may be inconvenient but they are just mixed in the mailman.pot file.
However, msgfmt.py and pygettext.py are not even admin files - they are only used by mailman developers. So it should cause no problems to users if the messages in these files were excluded from mailman.pot. To do so, the docstring.files rule in messages/Makefile.in might read docstring.files: @echo "Calculating script input files for pygettext" (cd ..; grep -d skip -l -i '^#! .*python.*' `find bin cron scripts -name ".#*" -prune -o -print` | grep -v pygettext >| grep -v msgfmt.py | grep -v pygettext.py | messages/$@) (cd ..; ls Mailman/Commands/cmd_*.py >> messages/$@) (this is untested, though) Alternatively, these two scripts might be moved into the messages directory. Regards, Martin
participants (3)
-
"Martin v. Löwis"
-
mss@mawhrin.net
-
Tokio Kikuchi