diff --git a/doc/translate.py b/doc/translate.py new file mode 100644 index 0000000..9623e3c --- /dev/null +++ b/doc/translate.py @@ -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']) \ No newline at end of file