Utils: Fix STRINGN codes in conv-lang.pl
This commit is contained in:
@@ -112,8 +112,11 @@ for my $lang (@langs) {
|
|||||||
my $suppress_whitespace = 1;
|
my $suppress_whitespace = 1;
|
||||||
for (@lang_lines) {
|
for (@lang_lines) {
|
||||||
if (/^(\w+)\s*:/) {
|
if (/^(\w+)\s*:/) {
|
||||||
if ($strs{$1}) {
|
my $str = $strs{$1};
|
||||||
push @lines, $strs{$1} . "\n";
|
if ($str) {
|
||||||
|
$str =~ s/\{STRING\d\}/{STRING}/g;
|
||||||
|
$str =~ s/\{RAW_STRING\}/{STRING}/g;
|
||||||
|
push @lines, $str . "\n";
|
||||||
$suppress_whitespace = 0;
|
$suppress_whitespace = 0;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user