Modified translator stuff for docs

This commit is contained in:
Manuel Cortez 2020-09-29 13:30:34 -05:00
parent 02cbb5bdb9
commit 90d2aa7519
2 changed files with 2 additions and 3 deletions

View File

@ -57,13 +57,12 @@ update_catalogs:
- '&$env:PYTHON3_32 documentation_importer.py'
- cd ..\src
- '&$env:PYTHON3_32 setup.py extract_messages -F babel.cfg --input-dirs . --output-file ..\scripts\socializer.pot'
- '&$env:PYTHON3_32 setup.py update_catalog --no-fuzzy-matching --domain socializer --output-dir locales --input-file ..\scripts\socializer.pot'
- cd ..\doc
- '&$env:PYTHON3_32 translate.py'
- cd ..
- 'git config user.name "Windows runner"'
- 'git config user.email "manuel@manuelcortez.net"'
- 'git add .'
- 'git add scripts'
- 'git remote set-url --push origin git@code.manuelcortez.net:$env:CI_PROJECT_PATH'
- 'git commit -m "Updated locales"'
- 'git push origin HEAD:$env:CI_COMMIT_REF_NAME'

View File

@ -1,5 +1,5 @@
from babel.messages.frontend import CommandLineInterface
CommandLineInterface().run(['pybabel', 'extract', '-o', 'socializer-documentation.pot', '.'])
CommandLineInterface().run(['pybabel', 'extract', '-o', '..\scripts\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'])