mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2025-07-04 20:25:25 +02:00
Add basic Dutch translations by jelle619 and translation scripts
This commit is contained in:
10
webapp/bin/tr_update.py
Normal file
10
webapp/bin/tr_update.py
Normal 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')
|
Reference in New Issue
Block a user