qasta / gettext-commons

Automatically exported from code.google.com/p/gettext-commons
GNU Lesser General Public License v2.1
0 stars 0 forks source link

The gettext-dist ant task should pass extra arguments to msgfmt #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run an ant target that contains this task:
<gettext-dist targetBundle="FOO" poDirectory="po" outputDirectory="build"/>

What is the expected output? What do you see instead?

I would like to have msgfmt invoked with the argument --verbose. I see no
way to specify this argument, or any custom arguments, for that matter.

What version of the product are you using? On what operating system?

gettext-ant-tasks-0.9.6 on Debian GNU/Linux 5.0 (Lenny)

Please provide any additional information below.

msgfmt --verbose would be useful for getting statistics.  The percentage
threshold is not enough for all projects.

Original issue reported on code.google.com by msmak...@gmail.com on 7 Mar 2009 at 8:37

GoogleCodeExporter commented 9 years ago
msgfmt --verbose --statistics returns exactly the same information as does 
msgfmt
--statistics on the po files I tried.

How would you need this information and how would you make use of from inside 
the ant
script?

If it's just about getting more verbose output when specifying ant -v, it could 
be
possible to add the output of msgfmt --statistics to verbose output of ant.

But if it's not part of the build process, it might be just easier looking at 
the
information using a few lines of bash:

for i in po/*.po; do echo -n "`basename $i`: "; msgfmt --statistics $i; done 

Original comment by berge...@gmail.com on 21 Dec 2009 at 12:20

GoogleCodeExporter commented 9 years ago
Feel free to reopen, if this is still relevant.

Original comment by berge...@gmail.com on 20 Mar 2010 at 11:01