From 8ebf5dedd211a299955187a2feaf2681b77a99f1 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Fri, 28 Feb 2020 16:59:51 -0600 Subject: [PATCH] Added little code to update documentation catalogs aswell --- doc/translate.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 doc/translate.py 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