2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-15 03:25:42 +00:00

Make translation compilation a separate step

- Must be run after a translation file is updated
This commit is contained in:
Oliver Walters
2019-09-26 10:21:14 +10:00
parent fcb47fce09
commit b56a1ade24
3 changed files with 12 additions and 5 deletions

View File

@ -15,8 +15,6 @@ migrate:
cd InvenTree && python3 manage.py migrate
cd InvenTree && python3 manage.py migrate --run-syncdb
cd InvenTree && python3 manage.py check
cd InvenTree && python3 manage.py makemessages
cd InvenTree && python3 manage.py compilemessages
# Collect static files into the correct locations
static:
@ -41,6 +39,11 @@ postgresql:
apt-get install postgresql postgresql-contrib libpq-dev
pip3 install psycopg2
# Update translation files
translate:
cd InvenTree && python3 manage.py makemessages
cd InvenTree && python3 manage.py compilemessages
# Run PEP style checks against source code
style:
flake8 InvenTree
@ -69,4 +72,4 @@ backup:
cd InvenTree && python3 manage.py dbbackup
cd InvenTree && python3 manage.py mediabackup
.PHONY: clean migrate superuser install mysql postgresql static style test coverage docreqs docs backup update
.PHONY: clean migrate superuser install mysql postgresql translate static style test coverage docreqs docs backup update