Changeset 28252 in osm for applications/editors/josm


Ignore:
Timestamp:
2012-04-12T13:42:54+02:00 (12 years ago)
Author:
simon04
Message:

JOSM/i18n: correct number of newlines in convpreset, test for existing URL in convwms

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

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/i18n/convpreset.pl

    r28250 r28252  
    142142    {
    143143      my $val = fix($1);
    144       print "/* item $item $combo_type $combo_n entry $value display value */" . ($vctxi ? " trc($vctxi, $val);" : " tr($val);") . "\n";
     144      print "/* item $item $combo_type $combo_n entry $value display value */" . ($vctxi ? " trc($vctxi, $val);" : " tr($val);");
    145145    }
    146146    else
    147147    {
    148148      my $val = fix($value);
    149       print "/* item $item $combo_type $combo_n entry $value display value */" . ($vctxi ? " trc($vctxi, $val);" : " tr($val);") . "\n";
     149      print "/* item $item $combo_type $combo_n entry $value display value */" . ($vctxi ? " trc($vctxi, $val);" : " tr($val);");
    150150    }
    151151    if($line =~ /short_description=(".*?")/)
    152152    {
    153153      my $val = fix($1);
    154       print "/* item $item $combo_type $combo_n entry $value short description */ tr($val);\n";
    155     }
     154      print "/* item $item $combo_type $combo_n entry $value short description */ tr($val);";
     155    }
     156    print "\n";
    156157  }
    157158  elsif($line =~ /<\/group>/)
  • applications/editors/josm/i18n/convwms.pl

    r26939 r28252  
    2121if($ARGV[0] && $ARGV[0] =~ /^http:\/\//)
    2222{
    23   @lines = split("\r?\n", get($ARGV[0]));
     23  my $content = get($ARGV[0]);
     24  die "Couldn't get $ARGV[0]" unless defined $content;
     25  @lines = split("\r?\n", $content);
    2426}
    2527else
Note: See TracChangeset for help on using the changeset viewer.