diff --git a/webapp/bin/tr_gen.py b/webapp/bin/tr_gen.py new file mode 100644 index 0000000..720b270 --- /dev/null +++ b/webapp/bin/tr_gen.py @@ -0,0 +1,12 @@ +#!/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') \ No newline at end of file