From b176b24e6d4e36c1a3b40f54119d3556b35ff48c Mon Sep 17 00:00:00 2001 From: Laurent Jouanneau Date: Tue, 29 May 2018 15:18:08 +0200 Subject: [PATCH] Add instructions to use the CLI tool of Transifex --- .tx/config | 41 ++++++++++++++++++++++++++++++++++ README.md | 2 +- i18n/README.md | 16 ++++++++++++- i18n/fr/LC_MESSAGES/install.po | 9 ++++---- 4 files changed, 62 insertions(+), 6 deletions(-) create mode 100644 .tx/config diff --git a/.tx/config b/.tx/config new file mode 100644 index 00000000..ce72ff1e --- /dev/null +++ b/.tx/config @@ -0,0 +1,41 @@ +[main] +host = https://www.transifex.com + +[lizmap-documentation.adminpot] +file_filter = i18n//LC_MESSAGES/admin.po +source_file = i18n/pot/admin.pot +source_lang = en +type = PO + +[lizmap-documentation.indexpot_1] +file_filter = i18n//LC_MESSAGES/index.po +source_file = i18n/pot/index.pot +source_lang = en +type = PO + +[lizmap-documentation.installpot] +file_filter = i18n//LC_MESSAGES/install.po +source_file = i18n/pot/install.pot +source_lang = en +type = PO + + +[lizmap-documentation.introductionpot] +file_filter = i18n//LC_MESSAGES/introduction.po +source_file = i18n/pot/introduction.pot +source_lang = en +type = PO + + +[lizmap-documentation.publishpot] +file_filter = i18n//LC_MESSAGES/publish.po +source_file = i18n/pot/publish.pot +source_lang = en +type = PO + + +[lizmap-documentation.userpot] +file_filter = i18n//LC_MESSAGES/user.po +source_file = i18n/pot/user.pot +source_lang = en +type = PO diff --git a/README.md b/README.md index f20d0cd6..50681fc4 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ make gettext sphinx-intl update -d i18n ``` -Then you can improve po files by opening them with QtLinguist. +Then you can improve po files by opening them with QtLinguist or Poedit. Build documentation =================== diff --git a/i18n/README.md b/i18n/README.md index 35a77870..6e9b6aaf 100644 --- a/i18n/README.md +++ b/i18n/README.md @@ -2,7 +2,7 @@ Add local ============ * Add a directory for your langage -* Transform \*.pot files from the *pot* directory to \*.po files in your langage directory +* Transform \*.pot files from the *pot* directory to \*.po files in your language directory * Translate the \*.po files with your favorite localize software Update local @@ -24,3 +24,17 @@ sphinx-intl build cd .. make -e BUILDDIR="../build/html/fr/" -e SPHINXOPTS="-D language='fr'" html ``` + +To update to and from Transifex +=============================== + +You should get an account on [transifex](https://www.transifex.com), and then you must +[create an API Key](https://www.transifex.com/user/settings/api/) + +Install [the client for command line](https://docs.transifex.com/client/installing-the-client), +`tx`, then launch `tx init --skipsetup` so you can indicate your api key. + +To retrieve po files from Transifex: `tx pull -l es,fi,fr,it,pt,ru`. + +To update po files to Transifex: `tx push -t -l fr`. +To update pot files (english source) to Transifex: `tx push -s `. diff --git a/i18n/fr/LC_MESSAGES/install.po b/i18n/fr/LC_MESSAGES/install.po index 48c6a6d2..4f2519ae 100644 --- a/i18n/fr/LC_MESSAGES/install.po +++ b/i18n/fr/LC_MESSAGES/install.po @@ -7,6 +7,7 @@ # Bobo Plateau , 2017 # Bobo Plateau , 2016 # Laurent Jouanneau , 2016 +# Laurent Jouanneau , 2018 # luckgentilpiron , 2017 # Mathieu Bossaert , 2017 # Nicolas Boisteault , 2016 @@ -16,8 +17,8 @@ msgstr "" "Project-Id-Version: Lizmap documentation\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-05-25 16:56+0200\n" -"PO-Revision-Date: 2018-05-25 15:04+0000\n" -"Last-Translator: rldhont \n" +"PO-Revision-Date: 2018-05-29 13:08+0000\n" +"Last-Translator: Laurent Jouanneau \n" "Language-Team: French (http://www.transifex.com/3liz-1/lizmap-documentation/language/fr/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -27,7 +28,7 @@ msgstr "" #: ../../source/install/advanced_install.rst:3 msgid "Advanced installation configuration" -msgstr "" +msgstr "Configuration d'installation avancée" #: ../../source/install/advanced_install.rst:5 msgid "" @@ -37,7 +38,7 @@ msgstr "" #: ../../source/install/advanced_install.rst:10 msgid "Lizmap behind a proxy/reverse proxy" -msgstr "" +msgstr "Lizmap derrière un proxy ou reverse proxy" #: ../../source/install/advanced_install.rst:12 msgid ""