Changeset 35180 in osm for applications/editors
- Timestamp:
- 2019-10-07T18:18:29+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/i18n/i18n.pl
r34996 r35180 310 310 } 311 311 312 sub createlang($ @)313 { 314 my ($data, @files) = @_;312 sub createlang($$@) 313 { 314 my ($data, $maxcount, @files) = @_; 315 315 my $maxlen = 0; 316 316 foreach my $file (@files) … … 319 319 $maxlen = $len if $len > $maxlen; 320 320 } 321 my $maxcount = keys(%{$data});322 321 foreach my $file (@files) 323 322 { … … 447 446 } 448 447 } 449 my %data = loadfiles(\%lang,$potfile ? loadpot($potfile) : undef, @po); 448 my $use = $potfile ? loadpot($potfile) : undef; 449 my %data = loadfiles(\%lang, $use, @po); 450 450 451 451 my @clang; … … 458 458 die "There have been warning. No output.\n" if $waswarn; 459 459 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.