mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-16 12:05:53 +00:00
Also run translation stats on updates
This commit is contained in:
4
tasks.py
4
tasks.py
@ -194,7 +194,7 @@ def translate(c):
|
|||||||
manage(c, "compilemessages")
|
manage(c, "compilemessages")
|
||||||
|
|
||||||
|
|
||||||
@task(pre=[install, migrate, static, clean_settings])
|
@task(pre=[install, migrate, static, clean_settings, translate_stats])
|
||||||
def update(c):
|
def update(c):
|
||||||
"""Update InvenTree installation.
|
"""Update InvenTree installation.
|
||||||
|
|
||||||
@ -205,9 +205,9 @@ def update(c):
|
|||||||
|
|
||||||
- install
|
- install
|
||||||
- migrate
|
- migrate
|
||||||
- translate_stats
|
|
||||||
- static
|
- static
|
||||||
- clean_settings
|
- clean_settings
|
||||||
|
- translate_stats
|
||||||
"""
|
"""
|
||||||
# Recompile the translation files (.mo)
|
# Recompile the translation files (.mo)
|
||||||
# We do not run 'invoke translate' here, as that will touch the source (.po) files too!
|
# We do not run 'invoke translate' here, as that will touch the source (.po) files too!
|
||||||
|
Reference in New Issue
Block a user