Changeset 26174 in osm for applications/editors/josm/i18n/i18n.pl
- Timestamp:
- 2011-06-25T19:02:31+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/i18n/i18n.pl
r25523 r26174 204 204 { 205 205 my ($data, @files) = @_; 206 my $maxlen = 0; 207 foreach my $file (@files) 208 { 209 my $len = length($file); 210 $maxlen = $len if $len > $maxlen; 211 } 206 212 foreach my $file (@files) 207 213 { … … 280 286 { 281 287 unlink $file; 282 print "Skipped file $file: Contained 0 strings out of $maxcount.\n";288 printf "Skipped file %-${maxlen}s: Contained 0 strings out of %5d.\n",$file,$maxcount; 283 289 } 284 290 else 285 291 { 286 print "Created file $file: Added$cntstrings out of $maxcount.\n";292 printf "Created file %-${maxlen}s: Added %5d strings out of %5d (%5.1f%%).\n",$file,$cnt,$maxcount,,$cnt*100.0/$maxcount; 287 293 } 288 294 }
Note:
See TracChangeset
for help on using the changeset viewer.