Changeset 35347 in osm for applications/editors
- Timestamp:
- 2020-03-03T20:59:53+01:00 (5 years ago)
- Location:
- applications/editors/josm/i18n
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/i18n/build.xml
r35345 r35347 3 3 <!-- compilation properties --> 4 4 <property name="josm.build.dir" value="../core"/> 5 <property name="josm.presets" value="${josm.build.dir}/resources/data/defaultpresets.xml"/> 5 <property name="josm.resources.dir" value="${josm.build.dir}/resources"/> 6 <property name="josm.presets" value="${josm.resources.dir}/data/defaultpresets.xml"/> 6 7 <property name="plugin.dir" value="../plugins"/> 7 8 <property name="maps.srcfile" value="https://josm.openstreetmap.de/maps"/> … … 9 10 <property name="surveyor.srcfile" value="${plugin.dir}/surveyor/resources/surveyor.xml"/> 10 11 <property name="i18n.build.dir" value="build"/> 11 <property name="i18n.install.dir" value="${josm. build.dir}/resources/data"/>12 <property name="i18n.install.dir" value="${josm.resources.dir}/data"/> 12 13 <property name="pluginlist.install.dir" value="${josm.build.dir}/nodist/data/trans"/> 13 14 <property name="po.build.dir" value="${i18n.build.dir}"/> … … 39 40 </exec> 40 41 <exec executable="perl" failonerror="true"> 42 <env key="TAGGING_PRESET_XSD" value="${josm.resources.dir}/data/tagging-preset.xsd"/> 41 43 <arg line="convwiki.pl ${wiki.srcfile} ${i18n.build.dir}/josmfiles ${i18n.build.dir}/josmfiles.zip"/> 42 44 </exec> … … 70 72 <fileset dir="${i18n.build.dir}" includes="specialmessages.java"/> 71 73 <fileset dir="${i18n.build.dir}" includes="trans_presets.java"/> 72 <fileset dir="${josm. build.dir}/resources/data/validator" includes="*.mapcss"/>73 <fileset dir="${josm. build.dir}/resources/styles/standard" includes="*.mapcss"/>74 <fileset dir="${josm.resources.dir}/data/validator" includes="*.mapcss"/> 75 <fileset dir="${josm.resources.dir}/styles/standard" includes="*.mapcss"/> 74 76 <fileset dir="${i18n.build.dir}" includes="trans_maps.java"/> 75 77 <!-- data.pot --> … … 90 92 <fileset dir="${josm.build.dir}/src" includes="**/*.java"/> 91 93 <fileset dir="${i18n.build.dir}" includes="specialmessages.java"/> 92 <fileset dir="${josm. build.dir}/resources/data/validator" includes="*.mapcss"/>93 <fileset dir="${josm. build.dir}/resources/styles/standard" includes="*.mapcss"/>94 <fileset dir="${josm.resources.dir}/data/validator" includes="*.mapcss"/> 95 <fileset dir="${josm.resources.dir}/styles/standard" includes="*.mapcss"/> 94 96 </gettext-extract> 95 97 </target> -
applications/editors/josm/i18n/convwiki.pl
r35346 r35347 34 34 system "mv \"$name\" \"$name.orig\""; 35 35 my ($path, $xmlname) = ($1, $2); 36 my $res = `xmllint --format --schema ../core/resources/data/tagging-preset.xsd\"$name.orig\" --encode utf-8 --output \"$name\" 2>&1`;36 my $res = `xmllint --format --schema $ENV{'TAGGING_PRESET_XSD'} \"$name.orig\" --encode utf-8 --output \"$name\" 2>&1`; 37 37 print $res if $res !~ /\.orig validates/; 38 38 system "perl convpreset.pl \"$name\" >\"${path}trans_$xmlname\"";
Note:
See TracChangeset
for help on using the changeset viewer.