Add basic Dutch translations by jelle619 and translation scripts

This commit is contained in:
Jeremy Zhang
2017-11-16 03:09:53 +00:00
parent f95cd7060c
commit 3007266556
6 changed files with 193 additions and 9 deletions

10
webapp/bin/tr_update.py Normal file
View File

@ -0,0 +1,10 @@
#!flask/bin/python
import os
import sys
if sys.platform == 'win32':
pybabel = 'flask\\Scripts\\pybabel'
else:
pybabel = 'pybabel'
os.system(pybabel + ' extract -F babel.cfg -k lazy_gettext -o messages.pot titanembeds')
os.system(pybabel + ' update -i messages.pot -d titanembeds/translations')
os.unlink('messages.pot')