Ignore:
Timestamp:
2011-03-05T23:14:51+01:00 (13 years ago)
Author:
stoecker
Message:

i18n update

File:
1 edited

Legend:

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

    r21523 r25523  
    2929
    3030    my $cnt = -1; # don't count translators info
    31     if($file =~ /\/(.._..)\.po$/ || $file =~ /\/(..)\.po$/)
     31    if($file =~ /\/(.._..)\.po$/ || $file =~ /\/(...?)\.po$/)
    3232    {
    3333      my $l = $1;
     
    209209    my $cnt = 0;
    210210    if($file =~ /[-_](.._..)\.lang$/ || $file =~ /^(?:.*\/)?(.._..)\.lang$/ ||
    211     $file =~ /[-_](...?)\.lang$/ || $file =~ /^(?:.*\/)?(..)\.lang$/)
     211    $file =~ /[-_](...?)\.lang$/ || $file =~ /^(?:.*\/)?(...?)\.lang$/)
    212212    {
    213213      $la = $1;
     
    277277    }
    278278    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    }
    280288  }
    281289}
Note: See TracChangeset for help on using the changeset viewer.