Changeset 8529 in osm for applications


Ignore:
Timestamp:
2008-06-27T21:44:25+02:00 (16 years ago)
Author:
stoecker
Message:

added combo-box elements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/lang/convpreset.pl

    r8497 r8529  
    3838    print "tr($1) /* item $item check $1 */\n";
    3939  }
    40   elsif($line =~ /<combo.*text=(".*?")/)
     40  elsif($line =~ /<combo.*text=(".*?").*values="(.*?)"/)
    4141  {
    42     print "tr($1) /* item $item combo $1 */\n";
     42    print "tr($1) /* item $item combo $1 */";
     43    foreach my $val (split ",",$2)
     44    {
     45      next if $val =~ /^[0-9-]+$/; # search for non-numbers
     46      print " tr(\"$val\")";
     47    }
     48    print "\n";
    4349  }
    4450  elsif($line =~ /^\s*$/
Note: See TracChangeset for help on using the changeset viewer.