From bc433bc2a2d15740c170bdc14e89559aa998acde Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Sat, 27 May 2017 18:38:37 +0100 Subject: [PATCH] ignore country codes --- scripts/check-i18n.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/check-i18n.pl b/scripts/check-i18n.pl index 21f10238e6..3cb2cec18c 100755 --- a/scripts/check-i18n.pl +++ b/scripts/check-i18n.pl @@ -43,6 +43,8 @@ foreach my $tuple (@$src_strings) { print "\nChecking en_EN\n"; my $count = 0; foreach my $k (sort keys %$en) { + # crappy heuristic to ignore country codes for now... + next if ($k =~ /^(..|..-..)$/); if (!$src->{$k}) { if ($src->{$k. '.'}) { printf ("%50s %24s\t%s\n", $src->{$k. '.'}, "src has fullstop!", $k);