Ignore:
Timestamp:
2011-06-25T19:02:31+02:00 (14 years ago)
Author:
stoecker
Message:

i18n update, split plugin and core translation

File:
1 edited

Legend:

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

    r25523 r26174  
    204204{
    205205  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  }
    206212  foreach my $file (@files)
    207213  {
     
    280286    {
    281287      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;
    283289    }
    284290    else
    285291    {
    286       print "Created file $file: Added $cnt strings 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;
    287293    }
    288294  }
Note: See TracChangeset for help on using the changeset viewer.