mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-26 23:17:03 +01:00
12 lines
328 B
Python
12 lines
328 B
Python
|
#!/usr/bin/python3
|
||
|
import os
|
||
|
import sys
|
||
|
if sys.platform == 'win32':
|
||
|
pybabel = 'flask\\Scripts\\pybabel'
|
||
|
else:
|
||
|
pybabel = 'pybabel'
|
||
|
try:
|
||
|
os.unlink('titanembeds/translations/messages.pot')
|
||
|
except:
|
||
|
pass
|
||
|
os.system(pybabel + ' extract -F babel.cfg -k lazy_gettext -o titanembeds/translations/messages.pot titanembeds')
|