mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-07 13:45:03 -05:00
updatelang: Handle/flag the bad data that led to english-us breaking
Change-Id: Ifffea9557d50ab5a103e13473ebe074ae1aa7b6d
This commit is contained in:
parent
0c958d2b4a
commit
bac897381c
1 changed files with 2 additions and 2 deletions
|
|
@ -307,7 +307,7 @@ foreach my $id (@langorder) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
foreach my $tgt (keys(%ep)) {
|
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 it doesn't exist in the language, copy it from English
|
||||||
if ($ep{$tgt} ne 'none' && $ep{$tgt} ne '' ) {
|
if ($ep{$tgt} ne 'none' && $ep{$tgt} ne '' ) {
|
||||||
$lang{$id}{'notes'} .= "### The <dest> section for '$id:$tgt' is missing! Copying from english!\n";
|
$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)) {
|
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 it doesn't exist in the language, copy it from English
|
||||||
if ($ep{$tgt} ne 'none' && $ep{$tgt} ne '' ) {
|
if ($ep{$tgt} ne 'none' && $ep{$tgt} ne '' ) {
|
||||||
$lang{$id}{'notes'} .= "### The <voice> section for '$id:$tgt' is missing! Copying from english!\n";
|
$lang{$id}{'notes'} .= "### The <voice> section for '$id:$tgt' is missing! Copying from english!\n";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue