forked from len0rd/rockbox
updatelang: Include the old/incorrect format specifier in the error message
Change-Id: Ic8ea9430e1412d98b518bcb2d8508ef459d1700a
This commit is contained in:
parent
73a47a1b5e
commit
34c6ee539f
1 changed files with 2 additions and 0 deletions
|
@ -370,6 +370,8 @@ foreach my $id (@langorder) {
|
|||
my $fmt2 = reduceformat($lp{$tgt});
|
||||
if ($fmt1 ne $fmt2) {
|
||||
$lang{$id}{'notes'} .= "### The <dest> section for '$id:$tgt' has incorrect format specifiers! Copying from English!\n";
|
||||
$lang{$id}{'notes'} .= "### the previously used one is commented below:\n";
|
||||
$lang{$id}{'notes'} .= "### $lang{$id}{dest}{$tgt}\n";
|
||||
$lang{$id}{'dest'}{$tgt} = $english{$id}{'dest'}{$tgt};
|
||||
# print "#!! '$id:$tgt' dest does not match src format args: '$fmt1' vs '$fmt2'\n";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue