Skip to content

Commit

Permalink
Fix two bugs in l10n.pl
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobsack committed Jul 16, 2013
1 parent bb0c5bf commit 69b175d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions l10n/l10n.pl
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,14 @@ sub readIgnorelist{
# Do we use singular or plural?
if( defined( $string->msgstr_n() )){
my @variants = ();
my $identifier = $string->msgid()."::".$string->msgid_plural()
my $identifier = $string->msgid()."::".$string->msgid_plural();
$identifier =~ s/"/_/g;

foreach my $variant ( sort { $a <=> $b} keys( %{$string->msgstr_n()} )){
push( @variants, $string->msgstr_n()->{$variant} );
}

push( @strings, "\"$identifier\" => array(".join(@variants, ",").")";
push( @strings, "\"$identifier\" => array(".join(@variants, ",").")");
}
else{
next if $string->msgstr() eq '""';
Expand Down

0 comments on commit 69b175d

Please sign in to comment.