Machine Translation Application
![]() | Allows to translate content using an external Machine Translation service |
Type | XAR |
Category | Other |
Developed by | slauriere, Josué Tille |
Rating | |
License | GNU Lesser General Public License 2.1 |
Table of contents
Description
This application allows to translate content using an external Machine Translation. At the moment only DeepL Translator is supported. Other services such as Libre Translate are not supported yet.
Usage
Once installed on a multilingual wiki, the application exposes a Translation dropdown menu on each page except the ones which are not translatable (see Administration section). This menu displays the list of available translations and exposes a Translate action allowing to trigger the translation or retranslation of the current page into additional languages.
Hitting the Translate action opens modal listing the available translations if any, with their last date of modification. Additional translations or retranslations can then be launched from the modal, into one or several languages. Once the translation job has completed, the user can return to the translated page in order to access the generated translations.
This design page provides information about the implementation and contains several improvement ideas or new potential features.
Administration
In order to use the application, it has to be activated in the administration module, which allows in addition to control the following parameters, as illustrated below:
- Name of the Machine Translation service to be used (at the moment only DeepL is supported)
- Machine Translation Service API key
- Translation location strategy: this parameter allows to choose between storing the translations at the same location of the original document (default option), or to prefix their location with the language key (eg /en/company/ becomes /fr/societe)
- In case the prefix strategy option is chosen, it is possible to force the use of the same location strategy for specific classes
- List of class properties to be translated: this is useful when using the prefix naming strategy and translating object fields
The administration screen also displays the current usage of the remote service.
Translation tests can be executed directly from the administrationfor checking that the translation service is correctly configured:
Translation Glossaries
The Machine Translation application can be used in combination with the Glossary Application by installing the Machine Translation Glossary Application.
Prerequisites & Installation Instructions
We recommend using the Extension Manager to install this extension (Make sure that the text "Installable with the Extension Manager" is displayed at the top right location on this page to know if this extension can be installed with the Extension Manager). Note that installing Extensions when being offline is currently not supported and you'd need to use some complex manual method.
You can also use the following manual method, which is useful if this extension cannot be installed with the Extension Manager or if you're using an old version of XWiki that doesn't have the Extension Manager:
- Log in the wiki with a user having Administration rights
- Go to the Administration page and select the Import category
- Follow the on-screen instructions to upload the downloaded XAR
- Click on the uploaded XAR and follow the instructions
- You'll also need to install all dependent Extensions that are not already installed in your wiki
Release Notes
v1.2
v1.0
Dependencies
Dependencies for this extension (org.xwiki.contrib.machinetranslation:machine-translation-ui 1.2):
- org.xwiki.contrib.machinetranslation:machine-translation-api 1.2
- org.xwiki.contrib.machinetranslation:machine-translation-deepl 1.2
- org.xwiki.contrib:macro-job 2.1