2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-12 01:55:39 +00:00

Add translation hooks for part detail template

This commit is contained in:
Oliver Walters
2019-09-27 10:12:46 +10:00
parent 225ad0ffa6
commit b870728125
5 changed files with 382 additions and 45 deletions

View File

@ -18,7 +18,7 @@ locales = []
for line in str(out.decode()).split('\n'):
# Check for any compiled translation files that have not been committed
if 'modified:' in line and '/locale/' in line and 'django.mo' in line:
if 'modified:' in line and '/locale/' in line and 'django.po' in line:
locales.append(line)
if len(locales) > 0: