Skip to content

Commit

Permalink
Fix validation check for .po files (#545)
Browse files Browse the repository at this point in the history
  • Loading branch information
rcalixte authored Dec 26, 2023
1 parent 3e70639 commit a4b0491
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion validate-spice
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -137,4 +139,4 @@ if sys.argv[1] == "--all":
else:
valid = validate_xlet(sys.argv[1])

quit(valid)
quit(valid)

0 comments on commit a4b0491

Please sign in to comment.