diff --git a/misc/translator/LangInstaller.pm b/misc/translator/LangInstaller.pm index ef6a5b154a..904f77cf87 100644 --- a/misc/translator/LangInstaller.pm +++ b/misc/translator/LangInstaller.pm @@ -317,7 +317,6 @@ sub translate_yaml { for my $field ( @translatable ) { # each translatable field if ( @multiline and grep { $_ eq $field } @multiline ) { # multiline fields, only notices ATM foreach my $line ( @{$row->{$field}} ) { - next if ( $line =~ /^(\s*<\/*\w+\s*>|\s*\[.*\]|\s*<.*\[.*\].*>|\s*)$/ ); # discard pure html, TT, empty my @ttvar; while ( $line =~ s/(<<.*?>>|\[\%.*?\%\]|<.*?>)/\%s/ ) { # put placeholders, save matches my $var = $1; diff --git a/misc/translator/xgettext-installer b/misc/translator/xgettext-installer index ecb134b14a..45d2a872e5 100755 --- a/misc/translator/xgettext-installer +++ b/misc/translator/xgettext-installer @@ -110,9 +110,6 @@ for my $file (@files) { foreach my $line ( @{ $row->{$field} } ) { $mulc++; - # discard pure html, TT, empty - next if ( $line =~ /^(\s*<\/*\w+\s*>|\s*\[.*\]|\s*<.*\[.*\].*>|\s*)$/ ); - # put placeholders $line =~ s/(<<.*?>>|\[\%.*?\%\]|<.*?>)/\%s/g;