Changeset 25613 in osm for applications/editors


Ignore:
Timestamp:
2011-03-18T10:27:48+01:00 (14 years ago)
Author:
stoecker
Message:

fix wms and validator

Location:
applications/editors/josm/i18n
Files:
2 edited

Legend:

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

    r25155 r25613  
    66  <property name="josm.style"        value="${josm.build.dir}/styles/standard/elemstyles.xml"/>
    77  <property name="plugin.dir"        value="../plugins"/>
    8   <property name="validator.tagfile" value="${plugin.dir}/validator/tagchecker.cfg"/>
    9   <property name="wms.srcfile"       value="${plugin.dir}/wmsplugin/sources.cfg"/>
     8  <property name="validator.tagfile" value="${josm.build.dir}/data/tagchecker.cfg"/>
     9  <property name="wms.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"/>
  • applications/editors/josm/i18n/convwms.pl

    r23091 r25613  
    55
    66use strict;
     7use LWP::Simple;
    78
    89my $item;
     
    1617print "class trans_wms { void tr(String s){} void f() {";
    1718
    18 while(my $line = <>)
     19my @lines;
     20if($ARGV[0] && $ARGV[0] =~ /^http:\/\//)
    1921{
     22  @lines = split("\r?\n", get($ARGV[0]));
     23}
     24else
     25{
     26  @lines = <>;
     27}
     28
     29for my $line (@lines)
     30{
     31  $line =~ s/\r//g;
    2032  chomp($line);
    2133  if($line =~ /^#(.*)$/)
Note: See TracChangeset for help on using the changeset viewer.