Changeset 36396 in osm for applications/editors


Ignore:
Timestamp:
2025-02-20T17:19:15+01:00 (4 days ago)
Author:
stoecker
Message:

fix dupliacte combo outputs in i18n translations

File:
1 edited

Legend:

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

    r36395 r36396  
    3838  $r .= " chunk $chunk" if $chunk;
    3939  $r .= " group $group" if $group;
    40   $r .= " combo $combo_type $combo_n" if $combo_type;
     40  $r .= " $combo_type $combo_n" if $combo_type;
    4141  $r .= " $_[0]" if $_[0];
    4242  return $r ? "/* $r */ " : "";
     
    154154    # text
    155155    my $tctx = ($line =~ /text_context=(".*?")/) ? $1 : undef;
    156     print infoblock("$type $n") . ($tctx ? " trc($tctx, $n);" : " tr($n);");
     156    print infoblock() . ($tctx ? " trc($tctx, $n);" : " tr($n);");
    157157    # display_values / values
    158158    my $sp = ($line =~ /delimiter="(.*?)"/) ? $1 : ($type eq "combo" ? ",":";");
     
    166166        next if $val =~ /^[0-9-]+$/; # search for non-numbers
    167167        $val = fix($val);
    168         print infoblock("$type $n display value") . ($vctx ? " trc($vctx, \"$val\");" : " tr(\"$val\");");
     168        print infoblock("display value") . ($vctx ? " trc($vctx, \"$val\");" : " tr(\"$val\");");
    169169      }
    170170    }
Note: See TracChangeset for help on using the changeset viewer.