Changeset 36370 in osm
- Timestamp:
- 2025-01-22T10:42:30+01:00 (3 hours ago)
- Location:
- applications/editors/josm
- Files:
-
- 99 added
- 46 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/i18n/build.xml
r35512 r36370 157 157 <target name="plugintrans"> 158 158 <basename file="${path}" property="dir"/> 159 <echo message="Run plugintrans target for plugin ${dir}" level="info"/> 160 <mkdir dir="${po.build.dir}/plugin_${dir}"/> 161 <exec executable="perl" failonerror="true" output="${po.build.dir}/plugin_${dir}/trans_plugin.java"> 162 <arg line="convplugins.pl ${plugin.dir}/${dir}/build.xml"/> 163 </exec> 164 <gettext-extract keysFile="josm.pot" poDirectory="${po.build.dir}/plugin_${dir}" keywords="${gettext.keywords}"> 165 <fileset dir="${plugin.dir}/${dir}" includes="**/*.java"/> 166 <fileset dir="${po.build.dir}/plugin_${dir}" includes="trans_*.java"/> 167 <fileset dir="${i18n.build.dir}" includes="trans_${dir}.java"/> <!-- include plugin specific translation --> 168 </gettext-extract> 159 169 <if> 160 <available file="${p lugin.dir}/${dir}/.tx/config" type="file"/>170 <available file="${po.build.dir}/plugin_${dir}/josm.pot" type="file"/> 161 171 <then> 162 <echo message="Skip plugin ${dir}, because it is translated with Transifex!"/> 172 <if> 173 <available file="${plugin.dir}/${dir}/data/" type="dir"/> 174 <else> 175 <mkdir dir="${plugin.dir}/${dir}/data/"/> 176 </else> 177 </if> 178 <exec executable="perl" failonerror="true"> 179 <arg line="i18n.pl --potfile=${po.build.dir}/plugin_${dir}/josm.pot --basedir=${plugin.dir}/${dir}/data/ po/*.po"/> 180 </exec> 163 181 </then> 164 <else>165 <echo message="Run plugintrans target for plugin ${dir}" level="info"/>166 <mkdir dir="${po.build.dir}/plugin_${dir}"/>167 <exec executable="perl" failonerror="true" output="${po.build.dir}/plugin_${dir}/trans_plugin.java">168 <arg line="convplugins.pl ${plugin.dir}/${dir}/build.xml"/>169 </exec>170 <gettext-extract keysFile="josm.pot" poDirectory="${po.build.dir}/plugin_${dir}" keywords="${gettext.keywords}">171 <fileset dir="${plugin.dir}/${dir}" includes="**/*.java"/>172 <fileset dir="${po.build.dir}/plugin_${dir}" includes="trans_*.java"/>173 <fileset dir="${i18n.build.dir}" includes="trans_${dir}.java"/> <!-- include plugin specific translation -->174 </gettext-extract>175 <if>176 <and>177 <available file="${po.build.dir}/plugin_${dir}/josm.pot" type="file"/>178 <available file="${plugin.dir}/${dir}/data/" type="dir"/>179 </and>180 <then>181 <exec executable="perl" failonerror="true">182 <arg line="i18n.pl --potfile=${po.build.dir}/plugin_${dir}/josm.pot --basedir=${plugin.dir}/${dir}/data/ po/*.po"/>183 </exec>184 </then>185 </if>186 <delete dir="${po.build.dir}/plugin_${dir}"/>187 </else>188 182 </if> 183 <delete dir="${po.build.dir}/plugin_${dir}"/> 189 184 </target> 190 185 <target name="clean">
Note:
See TracChangeset
for help on using the changeset viewer.