mirror of https://github.com/zulip/zulip.git
provision: Disable compilemessages searching for locale directories.
We explicitly configure LOCALE_PATHS, so we can safely disable this search of the entire tree for other locale directories. https://github.com/django/django/blob/4.1/django/core/management/commands/compilemessages.py#L92-L100 Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
1331f07521
commit
8f27a6fb73
|
@ -14,5 +14,5 @@ find ./locale \
|
|||
-regex '^\./locale/.*/\(mobile\|translations\).json$' \
|
||||
-exec ./tools/i18n/unescape-contents {} \;
|
||||
|
||||
./manage.py compilemessages
|
||||
./manage.py compilemessages --ignore='*'
|
||||
./tools/i18n/process-mobile-i18n
|
||||
|
|
|
@ -286,7 +286,7 @@ def main(options: argparse.Namespace) -> int:
|
|||
print("No need to regenerate the test DB.")
|
||||
|
||||
if options.is_force or need_to_run_compilemessages():
|
||||
run(["./manage.py", "compilemessages"])
|
||||
run(["./manage.py", "compilemessages", "--ignore=*"])
|
||||
write_new_digest(
|
||||
"last_compilemessages_hash",
|
||||
compilemessages_paths(),
|
||||
|
|
|
@ -49,7 +49,7 @@ run(["./tools/webpack", "--quiet"])
|
|||
run(["./manage.py", "collectstatic", "-v0", "--noinput"])
|
||||
|
||||
# Compile translation strings to generate `.mo` files.
|
||||
run(["./manage.py", "compilemessages", "-v0"])
|
||||
run(["./manage.py", "compilemessages", "-v0", "--ignore=*"])
|
||||
|
||||
# Needed if PRODUCTION
|
||||
os.makedirs("prod-static", exist_ok=True)
|
||||
|
|
Loading…
Reference in New Issue