mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Merge pull request #2918 from SchrodingersGat/translation-adjustment
Translation adjustment
This commit is contained in:
commit
41177f8611
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
13
tasks.py
13
tasks.py
@ -226,10 +226,10 @@ def translate_stats(c):
|
|||||||
@task(post=[translate_stats, static])
|
@task(post=[translate_stats, static])
|
||||||
def translate(c):
|
def translate(c):
|
||||||
"""
|
"""
|
||||||
Regenerate translation files.
|
Rebuild translation source files. (Advanced use only!)
|
||||||
|
|
||||||
Run this command after added new translatable strings,
|
Note: This command should not be used on a local install,
|
||||||
or after adding translations for existing strings.
|
it is performed as part of the InvenTree translation toolchain.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# Translate applicable .py / .html / .js files
|
# Translate applicable .py / .html / .js files
|
||||||
@ -237,7 +237,7 @@ def translate(c):
|
|||||||
manage(c, "compilemessages")
|
manage(c, "compilemessages")
|
||||||
|
|
||||||
|
|
||||||
@task(pre=[install, migrate, translate, static, clean_settings])
|
@task(pre=[install, migrate, static, clean_settings])
|
||||||
def update(c):
|
def update(c):
|
||||||
"""
|
"""
|
||||||
Update InvenTree installation.
|
Update InvenTree installation.
|
||||||
@ -253,7 +253,10 @@ def update(c):
|
|||||||
- static
|
- static
|
||||||
- clean_settings
|
- 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
|
@task
|
||||||
|
Loading…
Reference in New Issue
Block a user