Changeset 33841 in osm for applications/editors/josm/i18n/convpreset.pl
- Timestamp:
- 2017-11-20T16:29:04+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/i18n/convpreset.pl
r32280 r33841 38 38 $r .= " chunk $chunk" if $chunk; 39 39 $r .= " group $group" if $group; 40 $r .= " combo $combo_type $combo_n" if $combo_type; 40 41 $r .= " $_[0]" if $_[0]; 41 42 return $r ? "/* $r */ " : ""; … … 48 49 chomp($line); 49 50 print "tr(\"---DUMMY-MARKER---\"); "; 50 if($line =~ /<item\s+name=(".*?")/ )51 if($line =~ /<item\s+name=(".*?")/ || $line =~ /<item.* name=(".*?")/) 51 52 { 52 53 my $val = fix($1); … … 173 174 my $vctxi = ($line =~ /value_context=(".*?")/) ? $1 : $vctx; 174 175 my $value = ($line =~ /value=(".*?")/) ? $1 : undef; 175 if($line =~ / display_value=(".*?")/)176 if($line =~ /[^.]display_value=(".*?")/) 176 177 { 177 178 my $val = fix($1); 178 print infoblock(" $combo_type $combo_nentry $value display value") . ($vctxi ? " trc($vctxi, $val);" : " tr($val);");179 print infoblock("entry $value display value") . ($vctxi ? " trc($vctxi, $val);" : " tr($val);"); 179 180 } 180 181 else 181 182 { 182 183 my $val = fix($value); 183 print infoblock(" $combo_type $combo_nentry $value display value") . ($vctxi ? " trc($vctxi, $val);" : " tr($val);");184 print infoblock("entry $value display value") . ($vctxi ? " trc($vctxi, $val);" : " tr($val);"); 184 185 } 185 186 if($line =~ /short_description=(".*?")/) 186 187 { 187 188 my $val = fix($1); 188 print infoblock(" $combo_type $combo_nentry $value short description") . "tr($val);";189 print infoblock("entry $value short description") . "tr($val);"; 189 190 } 190 191 print "\n";
Note:
See TracChangeset
for help on using the changeset viewer.