Changeset 30227 in osm for applications/editors/josm/i18n/build.xml
- Timestamp:
- 2014-01-26T15:56:46+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/i18n/build.xml
r30144 r30227 21 21 <taskdef resource="net/sf/antcontrib/antcontrib.properties" classpath="${antcontrib.jar}"/> 22 22 </target> 23 <target name=" trans_.java">23 <target name="builddir"> 24 24 <mkdir dir="${i18n.build.dir}"/> 25 </target> 26 <target name="trans_.java" depends="builddir"> 25 27 <exec executable="perl" failonerror="true" output="${i18n.build.dir}/trans_presets.java"> 26 28 <arg line="convpreset.pl ${josm.presets}"/> … … 51 53 <fileset dir="${plugin.dir}" includes="**/*.java"/> 52 54 </gettext-extract> 55 </target> 56 <target name="po/core.pot" description="Extracts message keys from the JOSM core source code" depends="builddir,init"> 57 <gettext-extract keysFile="core.pot" poDirectory="po" keywords="-k -ktrc:1c,2 -kmarktrc:1c,2 -ktr -kmarktr -ktrn:1,2 -ktrnc:1c,2,3"> 58 <fileset dir="${josm.build.dir}/src" includes="**/*.java"/> 59 <fileset dir="${i18n.build.dir}" includes="specialmessages.java"/> 60 </gettext-extract> 61 </target> 62 <target name="${i18n.build.dir}/core.2.pot" depends="builddir,po/core.pot" description="Duplicates core.pot for de-duplication in data.pot and plugins.pot"> 63 <copy file="po/core.pot" tofile="${i18n.build.dir}/core.2.pot"/> 64 </target> 65 <target name="po/data.pot" description="Extracts message keys from data files, e.g., presets, imagery (minus core strings)" depends="trans_.java,po/core.pot,${i18n.build.dir}/core.2.pot,init"> 66 <gettext-extract keysFile="data.raw.pot" poDirectory="${i18n.build.dir}" keywords="-k -ktrc:1c,2 -kmarktrc:1c,2 -ktr -kmarktr -ktrn:1,2 -ktrnc:1c,2,3"> 67 <fileset dir="${i18n.build.dir}" includes="trans_*.java"/> 68 </gettext-extract> 69 <exec executable="msgcomm" output="po/data.pot"> 70 <arg line="--unique po/core.pot ${i18n.build.dir}/core.2.pot ${i18n.build.dir}/data.raw.pot"/> 71 </exec> 72 </target> 73 <target name="po/plugins.pot" description="Extracts message keys from the plugins source code (minus core strings)" depends="po/core.pot,${i18n.build.dir}/core.2.pot,init"> 74 <gettext-extract keysFile="plugins.raw.pot" poDirectory="${i18n.build.dir}" keywords="-k -ktrc:1c,2 -kmarktrc:1c,2 -ktr -kmarktr -ktrn:1,2 -ktrnc:1c,2,3"> 75 <fileset dir="${plugin.dir}" includes="**/*.java"/> 76 </gettext-extract> 77 <exec executable="msgcomm" output="po/plugins.pot"> 78 <arg line="--unique po/core.pot ${i18n.build.dir}/core.2.pot ${i18n.build.dir}/plugins.raw.pot"/> 79 </exec> 53 80 </target> 54 81 <target name="build" depends="po/josm.pot,init"> … … 126 153 </target> 127 154 <target name="pot" depends="po/josm.pot" /> 155 <target name="transifex" depends="po/core.pot,po/plugins.pot,po/data.pot" /> 128 156 <target name="update"> 129 157 <exec executable="perl">
Note:
See TracChangeset
for help on using the changeset viewer.