Navigation Menu

Skip to content

Commit

Permalink
Add instructions to use the CLI tool of Transifex
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentj committed May 29, 2018
1 parent 121f2ca commit b176b24
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 6 deletions.
41 changes: 41 additions & 0 deletions .tx/config
@@ -0,0 +1,41 @@
[main]
host = https://www.transifex.com

[lizmap-documentation.adminpot]
file_filter = i18n/<lang>/LC_MESSAGES/admin.po
source_file = i18n/pot/admin.pot
source_lang = en
type = PO

[lizmap-documentation.indexpot_1]
file_filter = i18n/<lang>/LC_MESSAGES/index.po
source_file = i18n/pot/index.pot
source_lang = en
type = PO

[lizmap-documentation.installpot]
file_filter = i18n/<lang>/LC_MESSAGES/install.po
source_file = i18n/pot/install.pot
source_lang = en
type = PO


[lizmap-documentation.introductionpot]
file_filter = i18n/<lang>/LC_MESSAGES/introduction.po
source_file = i18n/pot/introduction.pot
source_lang = en
type = PO


[lizmap-documentation.publishpot]
file_filter = i18n/<lang>/LC_MESSAGES/publish.po
source_file = i18n/pot/publish.pot
source_lang = en
type = PO


[lizmap-documentation.userpot]
file_filter = i18n/<lang>/LC_MESSAGES/user.po
source_file = i18n/pot/user.pot
source_lang = en
type = PO
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -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
===================
Expand Down
16 changes: 15 additions & 1 deletion i18n/README.md
Expand Up @@ -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
Expand All @@ -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 `.
9 changes: 5 additions & 4 deletions i18n/fr/LC_MESSAGES/install.po
Expand Up @@ -7,6 +7,7 @@
# Bobo Plateau <bobo-romania@users.noreply.github.com>, 2017
# Bobo Plateau <bobo-romania@users.noreply.github.com>, 2016
# Laurent Jouanneau <dev@ljouanneau.com>, 2016
# Laurent Jouanneau <dev@ljouanneau.com>, 2018
# luckgentilpiron <luck.gentil@gmail.com>, 2017
# Mathieu Bossaert <mathieu.bossaert@gmail.com>, 2017
# Nicolas Boisteault <nboisteault@gmail.com>, 2016
Expand All @@ -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 <rldhont@gmail.com>\n"
"PO-Revision-Date: 2018-05-29 13:08+0000\n"
"Last-Translator: Laurent Jouanneau <dev@ljouanneau.com>\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"
Expand All @@ -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 ""
Expand All @@ -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 ""
Expand Down

0 comments on commit b176b24

Please sign in to comment.