Added little code to update documentation catalogs aswell

This commit is contained in:
Manuel Cortez 2020-02-28 16:59:51 -06:00
parent 1d181b61a3
commit 8ebf5dedd2

5
doc/translate.py Normal file
View File

@ -0,0 +1,5 @@
from babel.messages.frontend import CommandLineInterface
CommandLineInterface().run(['pybabel', 'extract', '-o', 'socializer-documentation.pot', '.'])
#CommandLineInterface().run(['pybabel','compile','-d','../src/locales'])
CommandLineInterface().run(['pybabel','update', '--input-file', 'socializer-documentation.pot', '--domain', 'socializer-documentation', '--output-dir', '../src/locales'])