From 34c6ee539f838d46f4cb058f2bc565903398ba5a Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Tue, 30 Apr 2024 06:18:46 -0400 Subject: updatelang: Include the old/incorrect format specifier in the error message Change-Id: Ic8ea9430e1412d98b518bcb2d8508ef459d1700a --- tools/updatelang | 2 ++ 1 file changed, 2 insertions(+) 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) { my $fmt2 = reduceformat($lp{$tgt}); if ($fmt1 ne $fmt2) { $lang{$id}{'notes'} .= "### The 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"; } -- cgit v1.2.3