Changeset 31029 in osm for applications


Ignore:
Timestamp:
2015-02-20T09:18:35+01:00 (10 years ago)
Author:
stoecker
Message:

add description

Location:
applications/editors/josm/i18n
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/i18n/build.xml

    r30754 r31029  
    77    <property name="plugin.dir" value="../plugins"/>
    88    <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"/>
    1010    <property name="surveyor.srcfile" value="${plugin.dir}/surveyor/resources/surveyor.xml"/>
    1111    <property name="i18n.build.dir" value="build"/>
     
    3434            <arg line="convvalidator.pl ${validator.tagfile}"/>
    3535        </exec>
    36         <exec executable="perl" failonerror="true" output="${i18n.build.dir}/trans_wms.java">
    37             <arg line="convwms.pl ${wms.srcfile}"/>
     36        <exec executable="perl" failonerror="true" output="${i18n.build.dir}/trans_maps.java">
     37            <arg line="convmaps.pl ${maps.srcfile}"/>
    3838        </exec>
    3939        <exec executable="perl" failonerror="true" output="${i18n.build.dir}/trans_surveyor.java">
  • applications/editors/josm/i18n/convmaps.pl

    r31028 r31029  
    1616# Print a header to write valid Java code.  No line break,
    1717# so that the input and output line numbers will match.
    18 print "class trans_wms { void tr(String s){} void f() {";
     18print "class trans_maps { void tr(String s){} void f() {";
    1919
    2020my @lines;
     
    4141    print "tr(\"$val\"); /* $line */\n";
    4242  }
     43  if($line =~ /<description +lang=['"]en['"]>(.*)<\/description>/)
     44  {
     45    my $val = $1;
     46    $val =~ s/&amp;/&/g;
     47    print "tr(\"$val\"); /* $line */\n";
     48  }
    4349  elsif($line =~ /^[ \t]*$/)
    4450  {
Note: See TracChangeset for help on using the changeset viewer.