mirror of
https://github.com/zulip/zulip.git
synced 2025-11-21 15:09:34 +00:00
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:
@@ -68,7 +68,10 @@ if __name__ == "__main__":
|
|||||||
docs_url = (
|
docs_url = (
|
||||||
"https://zulip.readthedocs.io/en/latest/translating/translating.html#capitalization"
|
"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)
|
print(FAIL + "Failed!" + ENDC)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user