Changeset 29933 in osm for applications/editors
- Timestamp:
- 2013-09-19T15:18:30+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/i18n/convpreset.pl
r29208 r29933 28 28 } 29 29 30 my $linenr = 0; 30 31 while(my $line = <>) 31 32 { 33 ++$linenr; 32 34 chomp($line); 33 35 if($line =~ /<item\s+name=(".*?")/) … … 109 111 { 110 112 print "/* item $item role $n */ tr($n);\n"; 113 } 114 } 115 elsif($line =~ /<optional.*\s+text=(".*?")/) 116 { 117 my $n = fix($1); 118 if($line =~ /text_context=(".*?")/) 119 { 120 print "/* item $item optional $n */ trc($1,$n);\n"; 121 } 122 else 123 { 124 print "/* item $item optional $n */ tr($n);\n"; 111 125 } 112 126 } … … 180 194 || $line =~ /<key/ 181 195 || $line =~ /<presets/ 196 || $line =~ /<checkgroup/ 197 || $line =~ /<\/checkgroup/ 182 198 || $line =~ /<\/presets/ 183 199 || $line =~ /roles/ … … 193 209 { 194 210 print "/* unparsed line $line */\n"; 195 print STDERR "/* unparsed line $line */\n"; 211 print STDERR "/* unparsed line $linenr $line */\n"; 196 212 $result = 20 197 213 }
Note:
See TracChangeset
for help on using the changeset viewer.