tools: Improve output from check-capitalization.

Ideally, we'd print line numbers etc., but that's complicated because
the `translation.json` format doesn't include them, and usually it's
easy to find strings because you just added them anyway.

But adding a bit more of a `git grep` hint should help.

Fixes #14321.
This commit is contained in:
Tim Abbott 2021-04-09 11:09:03 -07:00
parent a220a7105e
commit d31f01bd0f
1 changed files with 4 additions and 1 deletions

View File

@ -68,7 +68,10 @@ if __name__ == "__main__":
docs_url = (
"https://zulip.readthedocs.io/en/latest/translating/translating.html#capitalization"
)
print(WARNING + "See " + docs_url + ENDC)
print()
print(WARNING + "You can usually find strings using `git grep 'String to find'`" + ENDC)
print(WARNING + "See also " + docs_url + ENDC)
print()
print(FAIL + "Failed!" + ENDC)
sys.exit(1)
else: