Changeset 35422 in osm for applications/editors/josm/i18n


Ignore:
Timestamp:
2020-04-13T22:27:14+02:00 (5 years ago)
Author:
simon04
Message:

see #josm19022 - PresetLink: allow to customize label text

File:
1 edited

Legend:

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

    r34809 r35422  
    133133    }
    134134  }
    135   elsif($line =~ /<optional.*\s+text=(".*?")/)
    136   {
    137     my $n = fix($1);
    138     if($line =~ /text_context=(".*?")/)
    139     {
    140       print infoblock("optional $n") . "trc($1,$n);\n";
    141     }
    142     else
    143     {
    144       print infoblock("optional $n") . "tr($n);\n";
     135  elsif($line =~ /<(optional|preset_link).*\s+text=(".*?")/)
     136  {
     137    my ($type,$n) = ($1,fix($2));
     138    if($line =~ /text_context=(".*?")/)
     139    {
     140      print infoblock("$type $n") . "trc($1,$n);\n";
     141    }
     142    else
     143    {
     144      print infoblock("$type $n") . "tr($n);\n";
    145145    }
    146146  }
Note: See TracChangeset for help on using the changeset viewer.