Am Dienstag, den 24.05.2005, 12:21 +0200 schrieb Egon Willighagen:
> On Tuesday 24 May 2005 01:25 am, Daniel Leidert wrote:
> > Am Montag, den 23.05.2005, 20:18 +0200 schrieb Egon Willighagen:
> > > On Monday 23 May 2005 19:07, Daniel Leidert wrote:
> > > > Yes, this works nice. Then I can change from <apply> to <exec> and I
> > > > don't have problems with existing targets. Really thanks. I'm currently
> > > > rewriting the the script.
> > >
> > > I'm having a look now at how to get it going for the application...
> >
> > After our discussion at IRC, I began to write an ant-script. The result
> > is attached. This file should handle: initial creation of .pot template
> > files, update of LANG.po files and translation into message_LANG.po
> > files.
> >
> > Please have a look and tell me your opinion. TODO-notes are at the
> > beginning of the file.
>
> I've now created the Jmol.filelist with:
>
> grep -l -R "GT._" src/org/openscience/jmol/app
I am currently testing a construct like:
<target name="create-application-pot" id="create-application-pot">
<echo message="Generating Jmol.pot (gettext PO-template) file ..."/>
<apply executable="xgettext" dir="${src.dir}" dest="${application.po.dir}"
parallel="true" addsourcefile="true" verbose="true">
<arg value="-k_" />
<arg value="-kGT._" />
<arg value="-s" />
<arg value="-L Java" />
<arg value="-d Jmol" />
<fileset dir="${src.dir}">
<include name="**/*.java" />
</fileset>
<mapper type="glob" from="Jmol.po" to="Jmol.pot"/>
</apply>
</target>
But it does not append the list of *.java files to the command.
create-application-pot:
[echo] Generating Jmol.pot (gettext PO-template) file ...
[apply] /usr/bin/xgettext: no input file given
[apply] Try `/usr/bin/xgettext --help' for more information.
[apply] Result: 1
[apply] Applied xgettext to 0 files and 0 directories.
I don't know, why this doesn't work. With parallel=true, the whole
filelist should be appended to the command. Anyone with an idea?
Regards, Daniel
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers