Changeset 24903 in osm for applications


Ignore:
Timestamp:
2010-12-29T14:54:44+01:00 (14 years ago)
Author:
stoecker
Message:

minor fix in comment handling

File:
1 edited

Legend:

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

    r24764 r24903  
    123123      $combo_values[$i] =~ s/\x91/,/g;
    124124      next if $combo_values[$i] =~ /^[0-9-]+$/; # search for non-numbers
    125       print $vctx ? " trc($vctx, \"$combo_values[$i]\");" : " tr(\"$combo_values[$i]\");";
     125      print "/* item $item combo $n display value */" . ($vctx ? " trc($vctx, \"$combo_values[$i]\");" : " tr(\"$combo_values[$i]\");");
    126126    }
    127127    print "\n";
     
    145145    {
    146146      next if $val =~ /^[0-9-]+$/; # search for non-numbers
    147       print $vctx ? " trc($vctx, \"$val\");" : " tr(\"$val\");";
    148     }
    149     print "\n";
    150   }
    151   elsif($line =~ /<short_description>(.*?)<\/short_description>/)
     147      print "/* item $item combo $n display value */" . ($vctx ? " trc($vctx, \"$val\");" : " tr(\"$val\");");
     148    }
     149    print "\n";
     150  }
     151  elsif(!$comment && $line =~ /<short_description>(.*?)<\/short_description>/)
    152152  {
    153153    my $n = $1;
Note: See TracChangeset for help on using the changeset viewer.