translation.txt 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. Translation
  2. ===========
  3. run these commands in the root directory of searx
  4. Add new language
  5. ~~~~~~~~~~~~~~~~
  6. ``pybabel init -i messages.pot -d searx/translations -l it``
  7. Update .po files
  8. ~~~~~~~~~~~~~~~~
  9. ``./utils/update-translations.sh``
  10. You may have errors here. In that case, edit the
  11. ``update-translations.sh`` script to change ``pybabel`` to
  12. ``pybabel-python2``
  13. After this step, you can modify the .po files.
  14. Compile translations
  15. ~~~~~~~~~~~~~~~~~~~~
  16. ``pybabel compile -d searx/translations``
  17. Transifex stuff
  18. ~~~~~~~~~~~~~~~
  19. Init Project
  20. ^^^^^^^^^^^^
  21. .. code:: shell
  22. tx set --auto-local -r searx.messagespo 'searx/translations/<lang>/LC_MESSAGES/messages.po' \
  23. --source-lang en --type PO --source-file messages.pot --execute
  24. http://docs.transifex.com/developer/client/set
  25. *TODO: mapping between transifex and searx*
  26. Get translations
  27. ^^^^^^^^^^^^^^^^
  28. .. code:: shell
  29. tx pull -a
  30. http://docs.transifex.com/developer/client/pull
  31. Upload source File
  32. ^^^^^^^^^^^^^^^^^^
  33. ::
  34. tx push -s
  35. Upload all Translation
  36. ^^^^^^^^^^^^^^^^^^^^^^
  37. ::
  38. tx push -s -t
  39. upload specifc Translation (only for admins)
  40. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  41. ::
  42. tx push -t -l tr
  43. http://docs.transifex.com/developer/client/push
  44. *TODO: upload empty files? (new translations)*