diff options
Diffstat (limited to 'l10n')
-rw-r--r-- | l10n/l10n.pl | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/l10n/l10n.pl b/l10n/l10n.pl index b4ad1d034dd..0ff25944d6c 100644 --- a/l10n/l10n.pl +++ b/l10n/l10n.pl @@ -153,8 +153,11 @@ elsif( $task eq 'write' ){ elsif( defined( $string->msgstr_n() )){ # plural translations my @variants = (); - my $identifier = $string->msgid()."::".$string->msgid_plural(); - $identifier =~ s/"/_/g; + my $msgid = $string->msgid(); + $msgid =~ s/^"(.*)"$/$1/; + my $msgid_plural = $string->msgid_plural(); + $msgid_plural =~ s/^"(.*)"$/$1/; + my $identifier = "_" . $msgid."_::_".$msgid_plural . "_"; foreach my $variant ( sort { $a <=> $b} keys( %{$string->msgstr_n()} )){ next TRANSLATIONS if $string->msgstr_n()->{$variant} eq '""'; |