Changeset 35180 in osm for applications/editors/josm/i18n


Ignore:
Timestamp:
2019-10-07T18:18:29+02:00 (5 years ago)
Author:
stoecker
Message:

report correct maximum translation string count for totally untranslated strings

File:
1 edited

Legend:

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

    r34996 r35180  
    310310}
    311311
    312 sub createlang($@)
    313 {
    314   my ($data, @files) = @_;
     312sub createlang($$@)
     313{
     314  my ($data, $maxcount, @files) = @_;
    315315  my $maxlen = 0;
    316316  foreach my $file (@files)
     
    319319    $maxlen = $len if $len > $maxlen;
    320320  }
    321   my $maxcount = keys(%{$data});
    322321  foreach my $file (@files)
    323322  {
     
    447446    }
    448447  }
    449   my %data = loadfiles(\%lang,$potfile ? loadpot($potfile) : undef, @po);
     448  my $use = $potfile ? loadpot($potfile) : undef;
     449  my %data = loadfiles(\%lang, $use, @po);
    450450
    451451  my @clang;
     
    458458  die "There have been warning. No output.\n" if $waswarn;
    459459
    460   createlang(\%data, @clang);
    461 }
     460  createlang(\%data, ($use ? keys %{$use} : keys %data), @clang);
     461}
Note: See TracChangeset for help on using the changeset viewer.