| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 | .. _translation:===========Translation===========.. _searx@transifex: https://www.transifex.com/asciimoo/searx/Translation currently takes place on `searx@transifex`_Requirements============* Transifex accountInit Transifex project======================After installing ``transifex`` using pip, run the following command toinitialize the project... code:: sh   ./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 itinto the configuration file.Create a configuration file for ``tx`` named ``$HOME/.tx/config``... code:: ini    [main]    host = https://www.transifex.com    [searx.messagespo]    file_filter = searx/translations/<lang>/LC_MESSAGES/messages.po    source_file = messages.pot    source_lang = en    type = POThen run ``tx set``:.. code:: shell    ./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 --executeUpdate translations===================To retrieve the latest translations, pull it from Transifex... code:: sh   ./manage pyenv.cmd tx pull -a   [?] Enter your api token: ....Then check the new languages.  If strings translated are not enough, delete thosefolders, because those should not be compiled.  Call the command below to compilethe ``.po`` files... code:: shell   ./manage pyenv.cmd pybabel compile -d searx/translationsAfter the compilation is finished commit the ``.po`` and ``.mo`` files andcreate a PR.
 |