mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-25 06:27:03 +01:00
Unlink messages pot first before generating a new one in translation update
This commit is contained in:
parent
1e66335fee
commit
44f44b2a50
@ -5,6 +5,9 @@ if sys.platform == 'win32':
|
|||||||
pybabel = 'flask\\Scripts\\pybabel'
|
pybabel = 'flask\\Scripts\\pybabel'
|
||||||
else:
|
else:
|
||||||
pybabel = 'pybabel'
|
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')
|
os.system(pybabel + ' extract -F babel.cfg -k lazy_gettext -o titanembeds/translations/messages.pot titanembeds')
|
||||||
os.system(pybabel + ' update -i messages.pot -d titanembeds/translations')
|
os.system(pybabel + ' update -i messages.pot -d titanembeds/translations')
|
||||||
os.unlink('messages.pot')
|
|
Loading…
Reference in New Issue
Block a user