From a4b04910ed36c8b1cf0a68157ebaa2f5a4a33180 Mon Sep 17 00:00:00 2001 From: Rick Calixte <10281587+rcalixte@users.noreply.github.com> Date: Tue, 26 Dec 2023 05:41:09 -0500 Subject: [PATCH] Fix validation check for .po files (#545) --- validate-spice | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/validate-spice b/validate-spice index 654350eb..b0f17b00 100755 --- a/validate-spice +++ b/validate-spice @@ -29,6 +29,8 @@ def validate_xlet(uuid): found = False for root, dirs, files in os.walk("files/%s" % uuid): + if any(ext.endswith(".po") for ext in files) and not any(ext.endswith(".pot") for ext in files): + raise CheckError("[%s] Invalid location for translation files!" % (uuid)) for file in files: if file == "%s.js" % SPICE_TYPE: found = True @@ -137,4 +139,4 @@ if sys.argv[1] == "--all": else: valid = validate_xlet(sys.argv[1]) -quit(valid) \ No newline at end of file +quit(valid)