Skip to content
Snippets Groups Projects
Commit df2e712a authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Merge pull request #14325 from owncloud/fix-plurals-with-quotes

Correctly create the expected key for plurals with quotes
parents 6e9a2515 602845f3
No related branches found
No related tags found
No related merge requests found
...@@ -153,8 +153,11 @@ elsif( $task eq 'write' ){ ...@@ -153,8 +153,11 @@ elsif( $task eq 'write' ){
elsif( defined( $string->msgstr_n() )){ elsif( defined( $string->msgstr_n() )){
# plural translations # plural translations
my @variants = (); my @variants = ();
my $identifier = $string->msgid()."::".$string->msgid_plural(); my $msgid = $string->msgid();
$identifier =~ s/"/_/g; $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()} )){ foreach my $variant ( sort { $a <=> $b} keys( %{$string->msgstr_n()} )){
push( @variants, $string->msgstr_n()->{$variant} ); push( @variants, $string->msgstr_n()->{$variant} );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment