Fix the po stats script to recognise "es_419"

The failure mode caused it to overwrite the es_ES stats
with the es_419 ones. Skipping the CI step, as this script
is only run by the pot-update targets.

[ci_skip]

(cherry picked from commit ec7bd83721ccd3cc05e696a1a0a6a56c06fa6a5a)
This commit is contained in:
Steve Cotton 2022-01-17 21:34:20 +01:00
parent 1dd8c60fc8
commit 1ad78a0442

View File

@ -103,7 +103,7 @@ def write_percentage_wml(wml_file, percent):
def get_wml_cfg(wml_dir, locale):
match = re.match(r'([a-z]+)(_([A-Z]+))?(@([a-z]+))?', locale)
match = re.match(r'([a-z]+)(_([A-Z0-9]+))?(@([a-z]+))?', locale)
if not match:
return None