diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2024-04-30 06:18:46 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-04-30 06:18:46 -0400 |
commit | 34c6ee539f838d46f4cb058f2bc565903398ba5a (patch) | |
tree | 550c1bf6c8752a3ebae73f3e1c7af8478156da1c /tools/updatelang | |
parent | 73a47a1b5e821be75a5a4a0444f55786fece196a (diff) | |
download | rockbox-34c6ee539f838d46f4cb058f2bc565903398ba5a.tar.gz rockbox-34c6ee539f838d46f4cb058f2bc565903398ba5a.zip |
updatelang: Include the old/incorrect format specifier in the error message
Change-Id: Ic8ea9430e1412d98b518bcb2d8508ef459d1700a
Diffstat (limited to 'tools/updatelang')
-rwxr-xr-x | tools/updatelang | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/updatelang b/tools/updatelang index 2691f53e39..aa5578f7f1 100755 --- a/tools/updatelang +++ b/tools/updatelang | |||
@@ -370,6 +370,8 @@ foreach my $id (@langorder) { | |||
370 | my $fmt2 = reduceformat($lp{$tgt}); | 370 | my $fmt2 = reduceformat($lp{$tgt}); |
371 | if ($fmt1 ne $fmt2) { | 371 | if ($fmt1 ne $fmt2) { |
372 | $lang{$id}{'notes'} .= "### The <dest> section for '$id:$tgt' has incorrect format specifiers! Copying from English!\n"; | 372 | $lang{$id}{'notes'} .= "### The <dest> section for '$id:$tgt' has incorrect format specifiers! Copying from English!\n"; |
373 | $lang{$id}{'notes'} .= "### the previously used one is commented below:\n"; | ||
374 | $lang{$id}{'notes'} .= "### $lang{$id}{dest}{$tgt}\n"; | ||
373 | $lang{$id}{'dest'}{$tgt} = $english{$id}{'dest'}{$tgt}; | 375 | $lang{$id}{'dest'}{$tgt} = $english{$id}{'dest'}{$tgt}; |
374 | # print "#!! '$id:$tgt' dest does not match src format args: '$fmt1' vs '$fmt2'\n"; | 376 | # print "#!! '$id:$tgt' dest does not match src format args: '$fmt1' vs '$fmt2'\n"; |
375 | } | 377 | } |