[josm-dev] Cleaning up i18n/build.xml

Dirk Stöcker openstreetmap at dstoecker.de
Sat Mar 7 20:06:35 GMT 2009


On Sat, 7 Mar 2009, Marko Mäkelä wrote:

> Regarding a), according to IETF RFC 4646 <http://tools.ietf.org/html/rfc4646>
> and apparently the ISO 639-2
> <http://www.loc.gov/standards/iso639-2/php/code_list.php>, you're right,
> "he" is to be preferred over "iw".  Unfortunately, I can't see a way to
> provide a such a mapping in gettext-ant-tasks.

Sure. It took me 2 hours to find out why "he" did not work. And some more 
time to convinve the build and josm to accept the renaming. There is one 
other language with same problem, but I do not remember which.

> Regarding b), the msgfmt command line is pretty much fixed in
> gettext-ant-tasks.  This and the above means that gettext-ant-tasks
> in its current form are not useable in this project.  (There is an
> option to provide a thresold percentage of messages translated, but
> that's all I could find related to statistics.)
>
> I fixed point c) in r13996.
>
> I can't repeat d).  I didn't remove anything related to the "po" directory
> from the "clean" target in r13964.  For me, ant clean seems to work
> just fine:

Yes, but it did not clean, as the temporary files have different names 
now.

--- build.xml   (Revision 13997)
+++ build.xml   (Arbeitskopie)
@@ -84,7 +84,7 @@
      <delete dir="${i18n.build.dir}" />
      <delete file="po/josm.pot"/>
      <delete>
-      <fileset dir="po" includes="*.po~" defaultexcludes="false"/>
+      <fileset dir="po" includes="*.po*~" defaultexcludes="false"/>
      </delete>
    </target>


> Given issues a) and b), I will revert i18n/build.xml to use the exec
> tasks as before r13964.  I'll try to add sorting the file names to the
> mix, so that the number of merge conflicts will be reduced in the future.

I can live with b for some time, but not without a. But generally I think 
this should be fixed in gettext-ant-tasks directly.

Will they do this? Generally I like the ant-task based variant more than 
the old method, but it must work, that's clear.

Ciao
-- 
http://www.dstoecker.eu/ (PGP key available)


More information about the josm-dev mailing list