Changeset 30038 in osm


Ignore:
Timestamp:
2013-11-03T11:54:08+01:00 (11 years ago)
Author:
simon04
Message:

I18n, convpreset: respect delimiter for <combo> values

File:
1 edited

Legend:

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

    r29999 r30038  
    136136    print "/* item $item $type $n */" . ($tctx ? " trc($tctx, $n);" : " tr($n);");
    137137    # display_values / values
    138     my $sp = ($type eq "combo" ? ",":";");
     138    my $sp = ($line =~ /delimiter="(.*?)"/) ? $1 : ($type eq "combo" ? ",":";");
    139139    my $vals = ($line =~ /display_values="(.*?)"/) ? $1 : ($line =~ /values="(.*?)"/) ? $1 : undef;
    140140    if($vals)
    141141    {
    142       my @combo_values = split $sp,$vals;
     142      my @combo_values = split "\Q$sp\E" ,$vals;
    143143      foreach my $val (@combo_values)
    144144      {
Note: See TracChangeset for help on using the changeset viewer.