Commit 8a3fb733 authored by Michal Čihař's avatar Michal Čihař

Document machine service configuration

parent ee8570c8
......@@ -153,6 +153,32 @@ Some of exceptions you might want to include:
r'/hooks/(.*)$', # Allowing public access to notification hooks
)
.. setting:: MACHINE_TRANSLATION_SERVICES
MACHINE_TRANSLATION_SERVICES
----------------------------
List of enabled machine translation services to use.
.. note::
Many of services need additional configuration like API keys, please check
their documentation for more details.
.. code-block:: python
MACHINE_TRANSLATION_SERVICES = (
'trans.machine.apertium.ApertiumTranslation',
'trans.machine.glosbe.GlosbeTranslation',
'trans.machine.google.GoogleTranslation',
'trans.machine.microsoft.MicrosoftTranslation',
'trans.machine.mymemory.MyMemoryTranslation',
'trans.machine.opentran.OpenTranTranslation',
'trans.machine.tmserver.TMServerTranslation',
)
.. seealso:: :ref:`machine-translation`
.. setting:: MT_APERTIUM_KEY
MT_APERTIUM_KEY
......
......@@ -368,10 +368,16 @@ WHOOSH_INDEX = os.path.join(WEB_ROOT, 'whoosh-index')
#)
# List of machine translations
# MACHINE_TRANSLATION_SERVICES = (
#MACHINE_TRANSLATION_SERVICES = (
# 'trans.machine.apertium.ApertiumTranslation',
# 'trans.machine.glosbe.GlosbeTranslation',
# 'trans.machine.google.GoogleTranslation',
# 'trans.machine.microsoft.MicrosoftTranslation',
# 'trans.machine.mymemory.MyMemoryTranslation',
# 'trans.machine.opentran.OpenTranTranslation',
# 'trans.machine.tmserver.TMServerTranslation',
#)
# E-mail address that error messages come from.
SERVER_EMAIL = 'noreply@weblate.org'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment