Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'l10n/l10n.pl')
-rw-r--r--l10n/l10n.pl7
1 files changed, 5 insertions, 2 deletions
diff --git a/l10n/l10n.pl b/l10n/l10n.pl
index 26ed4ecba30..4f8d8debb8d 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()} )){
push( @variants, $string->msgstr_n()->{$variant} );