summaryrefslogtreecommitdiffstats
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
parent0c958d2b4ad24549260a51f3fb0eac2fd7748270 (diff)
downloadrockbox-bac897381c.tar.gz
rockbox-bac897381c.zip
updatelang: Handle/flag the bad data that led to english-us breaking
Change-Id: Ifffea9557d50ab5a103e13473ebe074ae1aa7b6d
-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) {
}
}
foreach my $tgt (keys(%ep)) {
- if (!defined($lp{$tgt})) {
+ if (!defined($lp{$tgt}) || ($lp{$tgt} eq 'none')) {
# If it doesn't exist in the language, copy it from English
if ($ep{$tgt} ne 'none' && $ep{$tgt} ne '' ) {
$lang{$id}{'notes'} .= "### The <dest> section for '$id:$tgt' is missing! Copying from english!\n";
@@ -356,7 +356,7 @@ foreach my $id (@langorder) {
}
}
foreach my $tgt (keys(%ep)) {
- if (!defined($lp{$tgt})) {
+ if (!defined($lp{$tgt}) || ($lp{$tgt} eq 'none')) {
# If it doesn't exist in the language, copy it from English
if ($ep{$tgt} ne 'none' && $ep{$tgt} ne '' ) {
$lang{$id}{'notes'} .= "### The <voice> section for '$id:$tgt' is missing! Copying from english!\n";