Skip to content

Commit

Permalink
Add check for .mo files and more verbose errors (#515)
Browse files Browse the repository at this point in the history
  • Loading branch information
rcalixte authored Sep 14, 2024
1 parent 25f7d81 commit 816325c
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 @@ -31,7 +31,9 @@ def validate_xlet(uuid):
for _, _, files in os.walk(f'files/{uuid}'):
if (any(ext.endswith('.po') for ext in files) and not
any(ext.endswith('.pot') for ext in files)):
raise CheckError("Invalid location for translation files!")
raise CheckError(f"Invalid location for translation files! (Move any .po or .pot to files/{uuid}/po)")
if any(ext.endswith(".mo") for ext in files):
raise CheckError(f"Translation files should not be compiled! (Delete any .mo files in {uuid})")

if f"{uuid}{SPICE_EXT}" not in os.listdir('.'):
raise CheckError(f"Missing main {SPICE_EXT} file")
Expand Down

0 comments on commit 816325c

Please sign in to comment.