summaryrefslogtreecommitdiff
path: root/tools/updatelang
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2021-03-05 12:42:23 -0500
committerSolomon Peachy <pizza@shaftnet.org>2021-03-05 17:43:32 +0000
commitbac897381cc1ddaf741004c5590474b0145b8d57 (patch)
tree7b8bf421c4be37f51328bbad64f28db492dd5254 /tools/updatelang
parent0c958d2b4ad24549260a51f3fb0eac2fd7748270 (diff)
downloadrockbox-bac897381cc1ddaf741004c5590474b0145b8d57.tar.gz
rockbox-bac897381cc1ddaf741004c5590474b0145b8d57.zip
updatelang: Handle/flag the bad data that led to english-us breaking
Change-Id: Ifffea9557d50ab5a103e13473ebe074ae1aa7b6d
Diffstat (limited to 'tools/updatelang')
-rwxr-xr-xtools/updatelang4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/updatelang b/tools/updatelang
index 601ec3d297..48f447d074 100755
--- a/tools/updatelang
+++ b/tools/updatelang
@@ -307,7 +307,7 @@ foreach my $id (@langorder) {
307 } 307 }
308 } 308 }
309 foreach my $tgt (keys(%ep)) { 309 foreach my $tgt (keys(%ep)) {
310 if (!defined($lp{$tgt})) { 310 if (!defined($lp{$tgt}) || ($lp{$tgt} eq 'none')) {
311 # If it doesn't exist in the language, copy it from English 311 # If it doesn't exist in the language, copy it from English
312 if ($ep{$tgt} ne 'none' && $ep{$tgt} ne '' ) { 312 if ($ep{$tgt} ne 'none' && $ep{$tgt} ne '' ) {
313 $lang{$id}{'notes'} .= "### The <dest> section for '$id:$tgt' is missing! Copying from english!\n"; 313 $lang{$id}{'notes'} .= "### The <dest> section for '$id:$tgt' is missing! Copying from english!\n";
@@ -356,7 +356,7 @@ foreach my $id (@langorder) {
356 } 356 }
357 } 357 }
358 foreach my $tgt (keys(%ep)) { 358 foreach my $tgt (keys(%ep)) {
359 if (!defined($lp{$tgt})) { 359 if (!defined($lp{$tgt}) || ($lp{$tgt} eq 'none')) {
360 # If it doesn't exist in the language, copy it from English 360 # If it doesn't exist in the language, copy it from English
361 if ($ep{$tgt} ne 'none' && $ep{$tgt} ne '' ) { 361 if ($ep{$tgt} ne 'none' && $ep{$tgt} ne '' ) {
362 $lang{$id}{'notes'} .= "### The <voice> section for '$id:$tgt' is missing! Copying from english!\n"; 362 $lang{$id}{'notes'} .= "### The <voice> section for '$id:$tgt' is missing! Copying from english!\n";