Changeset 31029 in osm for applications
- Timestamp:
- 2015-02-20T09:18:35+01:00 (10 years ago)
- Location:
- applications/editors/josm/i18n
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/i18n/build.xml
r30754 r31029 7 7 <property name="plugin.dir" value="../plugins"/> 8 8 <property name="validator.tagfile" value="${josm.build.dir}/data/validator/tagchecker.cfg"/> 9 <property name=" wms.srcfile" value="http://josm.openstreetmap.de/maps"/>9 <property name="maps.srcfile" value="http://josm.openstreetmap.de/maps"/> 10 10 <property name="surveyor.srcfile" value="${plugin.dir}/surveyor/resources/surveyor.xml"/> 11 11 <property name="i18n.build.dir" value="build"/> … … 34 34 <arg line="convvalidator.pl ${validator.tagfile}"/> 35 35 </exec> 36 <exec executable="perl" failonerror="true" output="${i18n.build.dir}/trans_ wms.java">37 <arg line="conv wms.pl ${wms.srcfile}"/>36 <exec executable="perl" failonerror="true" output="${i18n.build.dir}/trans_maps.java"> 37 <arg line="convmaps.pl ${maps.srcfile}"/> 38 38 </exec> 39 39 <exec executable="perl" failonerror="true" output="${i18n.build.dir}/trans_surveyor.java"> -
applications/editors/josm/i18n/convmaps.pl
r31028 r31029 16 16 # Print a header to write valid Java code. No line break, 17 17 # so that the input and output line numbers will match. 18 print "class trans_ wms { void tr(String s){} void f() {";18 print "class trans_maps { void tr(String s){} void f() {"; 19 19 20 20 my @lines; … … 41 41 print "tr(\"$val\"); /* $line */\n"; 42 42 } 43 if($line =~ /<description +lang=['"]en['"]>(.*)<\/description>/) 44 { 45 my $val = $1; 46 $val =~ s/&/&/g; 47 print "tr(\"$val\"); /* $line */\n"; 48 } 43 49 elsif($line =~ /^[ \t]*$/) 44 50 {
Note:
See TracChangeset
for help on using the changeset viewer.