Apertium: Translating text
In ONLYOFFICE Docs, you can translate your text using the Apertium machine translation platform right in the editors.
Starting with ONLYOFFICE Docs 8.2, no plugins come with the editors by default. The plugins shall be installed via Plugin Manager.
-
Install the Apertium plugin using the Plugin Manager.
-
Select the text you want to translate.
-
Go to the Plugins tab and click on Apertium.
You can insert text for translation manually, without changing anything in your document. To do so, click Enter text manually on the left panel. Type new text in the field that appears or edit the already selected text (this will only affect the translation, the original text will remain unchanged).
-
Use the Copy button to copy the translation and the Insert to document button to replace the selected text with its translation.
noteBy default, the plugin uses the Apertium demo service with limited language pairs. To use Apertium without limitations, install it to your own server.
To send translation requests to your own server, change the URL address of the
serviceUrlvariable in the./scripts/apertium.jsfile.