diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2021-07-03 19:31:31 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2021-07-03 19:31:31 +0200 |
commit | debcbab561118d7f7602d77568b884d0e33f13ca (patch) | |
tree | e9cc619d6f0e2cd6c3bf94f26c45e1bd0feaf47d /docs/dev | |
parent | 0c256b378b9592b6e3c08c8e9ae7a36eb9568789 (diff) | |
download | searxng-debcbab561118d7f7602d77568b884d0e33f13ca.tar.gz searxng-debcbab561118d7f7602d77568b884d0e33f13ca.zip |
[fix] add missing transifex configuration (./tx/config)
BTW: update the documentation about transifex usage
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'docs/dev')
-rw-r--r-- | docs/dev/translation.rst | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/docs/dev/translation.rst b/docs/dev/translation.rst index 86c4c843b..523dcf78c 100644 --- a/docs/dev/translation.rst +++ b/docs/dev/translation.rst @@ -12,7 +12,6 @@ Requirements ============ * Transifex account -* Installed CLI tool of Transifex Init Transifex project ====================== @@ -22,7 +21,7 @@ initialize the project. .. code:: sh - tx init # Transifex instance: https://www.transifex.com/asciimoo/searx/ + ./manage pyenv.cmd tx init # Transifex instance: https://www.transifex.com/asciimoo/searx/ After ``$HOME/.transifexrc`` is created, get a Transifex API key and insert it @@ -45,8 +44,9 @@ Then run ``tx set``: .. code:: shell - tx set --auto-local -r searx.messagespo 'searx/translations/<lang>/LC_MESSAGES/messages.po' \ - --source-lang en --type PO --source-file messages.pot --execute + ./manage pyenv.cmd tx set --auto-local \ + -r searx.messagespo 'searx/translations/<lang>/LC_MESSAGES/messages.po' \ + --source-lang en --type PO --source-file messages.pot --execute Update translations @@ -56,7 +56,8 @@ To retrieve the latest translations, pull it from Transifex. .. code:: sh - tx pull -a + ./manage pyenv.cmd tx pull -a + [?] Enter your api token: .... Then check the new languages. If strings translated are not enough, delete those folders, because those should not be compiled. Call the command below to compile @@ -64,7 +65,7 @@ the ``.po`` files. .. code:: shell - pybabel compile -d searx/translations + ./manage pyenv.cmd pybabel compile -d searx/translations After the compilation is finished commit the ``.po`` and ``.mo`` files and |