@@ -6,23 +6,29 @@ run these commands in the root directory of searx
6Add new language
6Add new language
7~~~~~~~~~~~~~~~~
7~~~~~~~~~~~~~~~~
9−``pybabel init -i messages.pot -d searx/translations -l it``
11+ pybabel init -i messages.pot -d searx/translations -l it
11Update .po files
13Update .po files
12~~~~~~~~~~~~~~~~
14~~~~~~~~~~~~~~~~
14−``./utils/update-translations.sh``
18+ ./utils/update-translations.sh
16You may have errors here. In that case, edit the
20You may have errors here. In that case, edit the
17``update-translations.sh`` script to change ``pybabel`` to
21``update-translations.sh`` script to change ``pybabel`` to
18−``pybabel-python2``
22+``pybabel-python2`` or ``pybabel2``
20After this step, you can modify the .po files.
24After this step, you can modify the .po files.
22Compile translations
26Compile translations
23~~~~~~~~~~~~~~~~~~~~
27~~~~~~~~~~~~~~~~~~~~
25−``pybabel compile -d searx/translations``
31+ pybabel compile -d searx/translations
27Transifex stuff
33Transifex stuff
28~~~~~~~~~~~~~~~
34~~~~~~~~~~~~~~~
@@ -32,12 +38,14 @@ Init Project
33.. code:: shell
39.. code:: shell
41+ tx init # Transifex instance: https://www.transifex.com/asciimoo/searx/
35 tx set --auto-local -r searx.messagespo 'searx/translations/<lang>/LC_MESSAGES/messages.po' \
43 tx set --auto-local -r searx.messagespo 'searx/translations/<lang>/LC_MESSAGES/messages.po' \
36 --source-lang en --type PO --source-file messages.pot --execute
44 --source-lang en --type PO --source-file messages.pot --execute
38−http://docs.transifex.com/developer/client/set
46+http://docs.transifex.com/client/init/
40−*TODO: mapping between transifex and searx*
48+http://docs.transifex.com/client/set/
42Get translations
50Get translations
43^^^^^^^^^^^^^^^^
51^^^^^^^^^^^^^^^^
@@ -46,29 +54,27 @@ Get translations
47 tx pull -a
55 tx pull -a
49−http://docs.transifex.com/developer/client/pull
57+http://docs.transifex.com/client/pull
51Upload source File
59Upload source File
52^^^^^^^^^^^^^^^^^^
60^^^^^^^^^^^^^^^^^^
56 tx push -s
64 tx push -s
58Upload all Translation
66Upload all Translation
59^^^^^^^^^^^^^^^^^^^^^^
67^^^^^^^^^^^^^^^^^^^^^^
63 tx push -s -t
71 tx push -s -t
65−upload specifc Translation (only for admins)
73+upload specifc Translation
66−~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
74+~~~~~~~~~~~~~~~~~~~~~~~~~~
70 tx push -t -l tr
78 tx push -t -l tr
72−http://docs.transifex.com/developer/client/push
80+http://docs.transifex.com/client/push
74−*TODO: upload empty files? (new translations)*