diff --git a/InvenTree/locale/cs/LC_MESSAGES/django.mo b/InvenTree/locale/cs/LC_MESSAGES/django.mo deleted file mode 100644 index 067827f3ed..0000000000 Binary files a/InvenTree/locale/cs/LC_MESSAGES/django.mo and /dev/null differ diff --git a/InvenTree/locale/de/LC_MESSAGES/django.mo b/InvenTree/locale/de/LC_MESSAGES/django.mo deleted file mode 100644 index de1e091409..0000000000 Binary files a/InvenTree/locale/de/LC_MESSAGES/django.mo and /dev/null differ diff --git a/InvenTree/locale/el/LC_MESSAGES/django.mo b/InvenTree/locale/el/LC_MESSAGES/django.mo deleted file mode 100644 index dbe42ffd5b..0000000000 Binary files a/InvenTree/locale/el/LC_MESSAGES/django.mo and /dev/null differ diff --git a/InvenTree/locale/en/LC_MESSAGES/django.mo b/InvenTree/locale/en/LC_MESSAGES/django.mo deleted file mode 100644 index 71cbdf3e9d..0000000000 Binary files a/InvenTree/locale/en/LC_MESSAGES/django.mo and /dev/null differ diff --git a/InvenTree/locale/es/LC_MESSAGES/django.mo b/InvenTree/locale/es/LC_MESSAGES/django.mo deleted file mode 100644 index 5fe6a6efb8..0000000000 Binary files a/InvenTree/locale/es/LC_MESSAGES/django.mo and /dev/null differ diff --git a/InvenTree/locale/es_MX/LC_MESSAGES/django.mo b/InvenTree/locale/es_MX/LC_MESSAGES/django.mo deleted file mode 100644 index 71cbdf3e9d..0000000000 Binary files a/InvenTree/locale/es_MX/LC_MESSAGES/django.mo and /dev/null differ diff --git a/InvenTree/locale/fa/LC_MESSAGES/django.mo b/InvenTree/locale/fa/LC_MESSAGES/django.mo deleted file mode 100644 index 2c90dd0c81..0000000000 Binary files a/InvenTree/locale/fa/LC_MESSAGES/django.mo and /dev/null differ diff --git a/InvenTree/locale/fr/LC_MESSAGES/django.mo b/InvenTree/locale/fr/LC_MESSAGES/django.mo deleted file mode 100644 index a3751f6c99..0000000000 Binary files a/InvenTree/locale/fr/LC_MESSAGES/django.mo and /dev/null differ diff --git a/InvenTree/locale/he/LC_MESSAGES/django.mo b/InvenTree/locale/he/LC_MESSAGES/django.mo deleted file mode 100644 index 3427265ca5..0000000000 Binary files a/InvenTree/locale/he/LC_MESSAGES/django.mo and /dev/null differ diff --git a/InvenTree/locale/hu/LC_MESSAGES/django.mo b/InvenTree/locale/hu/LC_MESSAGES/django.mo deleted file mode 100644 index 71cbdf3e9d..0000000000 Binary files a/InvenTree/locale/hu/LC_MESSAGES/django.mo and /dev/null differ diff --git a/InvenTree/locale/id/LC_MESSAGES/django.mo b/InvenTree/locale/id/LC_MESSAGES/django.mo deleted file mode 100644 index e0106c400d..0000000000 Binary files a/InvenTree/locale/id/LC_MESSAGES/django.mo and /dev/null differ diff --git a/InvenTree/locale/it/LC_MESSAGES/django.mo b/InvenTree/locale/it/LC_MESSAGES/django.mo deleted file mode 100644 index 2f4d8f5075..0000000000 Binary files a/InvenTree/locale/it/LC_MESSAGES/django.mo and /dev/null differ diff --git a/InvenTree/locale/ja/LC_MESSAGES/django.mo b/InvenTree/locale/ja/LC_MESSAGES/django.mo deleted file mode 100644 index d9e09fe1ee..0000000000 Binary files a/InvenTree/locale/ja/LC_MESSAGES/django.mo and /dev/null differ diff --git a/InvenTree/locale/ko/LC_MESSAGES/django.mo b/InvenTree/locale/ko/LC_MESSAGES/django.mo deleted file mode 100644 index 84270c1185..0000000000 Binary files a/InvenTree/locale/ko/LC_MESSAGES/django.mo and /dev/null differ diff --git a/InvenTree/locale/nl/LC_MESSAGES/django.mo b/InvenTree/locale/nl/LC_MESSAGES/django.mo deleted file mode 100644 index 90bb7bf5b8..0000000000 Binary files a/InvenTree/locale/nl/LC_MESSAGES/django.mo and /dev/null differ diff --git a/InvenTree/locale/no/LC_MESSAGES/django.mo b/InvenTree/locale/no/LC_MESSAGES/django.mo deleted file mode 100644 index f4261a805f..0000000000 Binary files a/InvenTree/locale/no/LC_MESSAGES/django.mo and /dev/null differ diff --git a/InvenTree/locale/pl/LC_MESSAGES/django.mo b/InvenTree/locale/pl/LC_MESSAGES/django.mo deleted file mode 100644 index b76b641e43..0000000000 Binary files a/InvenTree/locale/pl/LC_MESSAGES/django.mo and /dev/null differ diff --git a/InvenTree/locale/pt/LC_MESSAGES/django.mo b/InvenTree/locale/pt/LC_MESSAGES/django.mo deleted file mode 100644 index 71cbdf3e9d..0000000000 Binary files a/InvenTree/locale/pt/LC_MESSAGES/django.mo and /dev/null differ diff --git a/InvenTree/locale/pt_br/LC_MESSAGES/django.mo b/InvenTree/locale/pt_br/LC_MESSAGES/django.mo deleted file mode 100644 index 2c90dd0c81..0000000000 Binary files a/InvenTree/locale/pt_br/LC_MESSAGES/django.mo and /dev/null differ diff --git a/InvenTree/locale/ru/LC_MESSAGES/django.mo b/InvenTree/locale/ru/LC_MESSAGES/django.mo deleted file mode 100644 index 538be8df29..0000000000 Binary files a/InvenTree/locale/ru/LC_MESSAGES/django.mo and /dev/null differ diff --git a/InvenTree/locale/sv/LC_MESSAGES/django.mo b/InvenTree/locale/sv/LC_MESSAGES/django.mo deleted file mode 100644 index 7156b00547..0000000000 Binary files a/InvenTree/locale/sv/LC_MESSAGES/django.mo and /dev/null differ diff --git a/InvenTree/locale/th/LC_MESSAGES/django.mo b/InvenTree/locale/th/LC_MESSAGES/django.mo deleted file mode 100644 index 17059a4eda..0000000000 Binary files a/InvenTree/locale/th/LC_MESSAGES/django.mo and /dev/null differ diff --git a/InvenTree/locale/tr/LC_MESSAGES/django.mo b/InvenTree/locale/tr/LC_MESSAGES/django.mo deleted file mode 100644 index 3c37bd7989..0000000000 Binary files a/InvenTree/locale/tr/LC_MESSAGES/django.mo and /dev/null differ diff --git a/InvenTree/locale/vi/LC_MESSAGES/django.mo b/InvenTree/locale/vi/LC_MESSAGES/django.mo deleted file mode 100644 index 5123025e2e..0000000000 Binary files a/InvenTree/locale/vi/LC_MESSAGES/django.mo and /dev/null differ diff --git a/InvenTree/locale/zh/LC_MESSAGES/django.mo b/InvenTree/locale/zh/LC_MESSAGES/django.mo deleted file mode 100644 index ca6e3887e3..0000000000 Binary files a/InvenTree/locale/zh/LC_MESSAGES/django.mo and /dev/null differ diff --git a/tasks.py b/tasks.py index f079672199..2ed0b4d35e 100644 --- a/tasks.py +++ b/tasks.py @@ -226,10 +226,10 @@ def translate_stats(c): @task(post=[translate_stats, static]) def translate(c): """ - Regenerate translation files. + Rebuild translation source files. (Advanced use only!) - Run this command after added new translatable strings, - or after adding translations for existing strings. + Note: This command should not be used on a local install, + it is performed as part of the InvenTree translation toolchain. """ # Translate applicable .py / .html / .js files @@ -237,7 +237,7 @@ def translate(c): manage(c, "compilemessages") -@task(pre=[install, migrate, translate, static, clean_settings]) +@task(pre=[install, migrate, static, clean_settings]) def update(c): """ Update InvenTree installation. @@ -253,7 +253,10 @@ def update(c): - static - clean_settings """ - pass + + # Recompile the translation files (.mo) + # We do not run 'invoke translate' here, as that will touch the source (.po) files too! + manage(c, 'compilemessages', pty=True) @task