mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-26 06:57:04 +01:00
10 lines
327 B
Python
Executable File
10 lines
327 B
Python
Executable File
#!/usr/bin/python3
|
|
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') |