socializer/doc/translate.py

5 lines
395 B
Python
Raw Permalink Normal View History

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'])