From 90d2aa75197de8335e57d2913566c6d0e693c2f1 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Tue, 29 Sep 2020 13:30:34 -0500 Subject: [PATCH] Modified translator stuff for docs --- .gitlab-ci.yml | 3 +-- doc/translate.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0ac2196..747b65a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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' diff --git a/doc/translate.py b/doc/translate.py index 9623e3c..791e620 100644 --- a/doc/translate.py +++ b/doc/translate.py @@ -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']) \ No newline at end of file