updatelang: Update validation check for LANG_VOICED_DATE_FORMAT

Missed this in the previous commit

Change-Id: Ia85a8017abfeca369b0e12723468cbe8018def8f
This commit is contained in:
Solomon Peachy 2026-03-01 16:40:14 -05:00
parent 17edcbd42a
commit b93f3d0589

View file

@ -397,7 +397,7 @@ foreach my $id (@langorder) {
if ($id eq 'LANG_VOICED_DATE_FORMAT') {
my $sane = $lp{$tgt};
$sane =~ s/^~?(.*)/$1/; # Strip off leading ~ if it's there as it's not a legal character for the format.
$sane =~ tr/YAmd~//d;
$sane =~ tr/yYAmd~//d;
if (length($sane) != 0) {
$lang{$id}{'notes'} .= "### The <dest> section for '$id:$tgt' has illegal characters! Restoring from English!\n";
$lang{$id}{'notes'} .= "#### the previously used one is commented below:\n";