Extra strings: Move "JUST" strings to a no-translate section

This commit is contained in:
Jonathan G Rennison
2023-07-30 19:28:26 +01:00
parent eb03369a21
commit 7744ccf3f3
7 changed files with 26 additions and 99 deletions

View File

@@ -82,11 +82,17 @@ welsh.txt
my @lang_lines;
my $start = 0;
my $override = 0;
my $no_translate = 0;
my @lines = read_file("extra/english.txt") or die("Can't read english.txt");
for (@lines) {
$start = 1 if /##override off/;
next unless $start;
$override = 0 if /##override off/;
$override = 1 if /##override on/;
$no_translate = 0 if /##no-translate off/;
$no_translate = 1 if /##no-translate on/;
next if $override;
next if $no_translate;
next if /^##/;