Changeset 25523 in osm for applications/editors/josm/i18n/i18n.pl
- Timestamp:
- 2011-03-05T23:14:51+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/i18n/i18n.pl
r21523 r25523 29 29 30 30 my $cnt = -1; # don't count translators info 31 if($file =~ /\/(.._..)\.po$/ || $file =~ /\/(.. )\.po$/)31 if($file =~ /\/(.._..)\.po$/ || $file =~ /\/(...?)\.po$/) 32 32 { 33 33 my $l = $1; … … 209 209 my $cnt = 0; 210 210 if($file =~ /[-_](.._..)\.lang$/ || $file =~ /^(?:.*\/)?(.._..)\.lang$/ || 211 $file =~ /[-_](...?)\.lang$/ || $file =~ /^(?:.*\/)?(.. )\.lang$/)211 $file =~ /[-_](...?)\.lang$/ || $file =~ /^(?:.*\/)?(...?)\.lang$/) 212 212 { 213 213 $la = $1; … … 277 277 } 278 278 close FILE; 279 print "Created file $file: Added $cnt strings out of $maxcount.\n"; 279 if(!$cnt) 280 { 281 unlink $file; 282 print "Skipped file $file: Contained 0 strings out of $maxcount.\n"; 283 } 284 else 285 { 286 print "Created file $file: Added $cnt strings out of $maxcount.\n"; 287 } 280 288 } 281 289 }
Note:
See TracChangeset
for help on using the changeset viewer.