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
path: root/l10n
diff options
context:
space:
mode:
Diffstat (limited to 'l10n')
-rw-r--r--l10n/l10n.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/l10n/l10n.pl b/l10n/l10n.pl
index 4f8d8debb8d..0ff25944d6c 100644
--- a/l10n/l10n.pl
+++ b/l10n/l10n.pl
@@ -145,7 +145,7 @@ elsif( $task eq 'write' ){
my @js_strings = ();
my $plurals;
- foreach my $string ( @{$array} ){
+ TRANSLATIONS: foreach my $string ( @{$array} ){
if( $string->msgid() eq '""' ){
# Translator information
$plurals = getPluralInfo( $string->msgstr());
@@ -160,6 +160,7 @@ elsif( $task eq 'write' ){
my $identifier = "_" . $msgid."_::_".$msgid_plural . "_";
foreach my $variant ( sort { $a <=> $b} keys( %{$string->msgstr_n()} )){
+ next TRANSLATIONS if $string->msgstr_n()->{$variant} eq '""';
push( @variants, $string->msgstr_n()->{$variant} );
}
@@ -168,7 +169,7 @@ elsif( $task eq 'write' ){
}
else{
# singular translations
- next if $string->msgstr() eq '""';
+ next TRANSLATIONS if $string->msgstr() eq '""';
push( @strings, $string->msgid()." => ".$string->msgstr());
push( @js_strings, $string->msgid()." : ".$string->msgstr());
}