CTSX Microsoft Translator
Edition |
Incubator (services) |
||
Issues |
|||
Git |
|||
Latest |
3.4.12
|
The CTSX Microsoft module performs translation via Microsoft.
Installing with Maven
Maven is the easiest way to install the module. Add the following to your bundle:
In order to start the Microsoft translation process, please make sure that the core and apps modules in the Content Translation Extended have already been installed. |
<dependency>
<groupId>info.magnolia.translation</groupId>
<artifactId>magnolia-content-translation-support-ext-microsoft</artifactId>
<version>3.4.12</version>
</dependency>
Configuration
Configuration of the Microsoft service provider is handled in the module config. This provider can be configured with the following properties.
Please use JCR for module configuration. When using yaml, translation provider definition will not be loaded and connector will be not usable.
Property | Description |
---|---|
|
optional , default is When true the content review process (workflow) is bypassed. |
|
required Definition class for the translator to be used. See |
|
required Identifies the client application with Microsoft. |
|
required Client secret for the client ID. |
|
required Identifies the configuration within Magnolia. |
|
optional The default configuration used by the system in the case of multiple translation services being used. |
|
required Implementation class for interfacing with Microsoft. See |
Sample configuration
'config':
'jcr:primaryType': 'mgnl:content'
'Microsoft':
'autoTranslationAllowed': 'false'
'class': 'info.magnolia.translation.ext.provider.microsoft.definition.MicrosoftProviderDefinition'
'clientId': 'xxx'
'clientToken': 'xxxxxxxxxxxxxxxxxxxx'
'configName': 'Microsoft.com'
'enabledFlag': 'true'
'implementationClass': 'info.magnolia.translation.ext.provider.microsoft.translator.MicrosoftTranslator'
There might have some mismatch between supported language from Magnolia system and Microsoft translation, so we provide the default configuration for mapping between those language codes in config module.
Usage
After registration and starting, The Content Translation Support Extended (CTSX) module will bind the Microsoft translator to Configuration fields.
You can test the connection to the translator api before using. |
How it works
Use the same steps outlined with CTSX Google Translator but you will choose Microsoft.com instead of Google.com in the Configuration.
Known issues
Text too large
In case of submitting many contents (such as the whole /travel page includes dependences), an error will be thrown as below. This is known issue as number of submitted segments is over microsoft’s threshold.
ERROR info.magnolia.translation.ext.provider.microsoft.translator.MicrosoftTranslator: Error occurred while translating
java.lang.RuntimeException: TEXT_TOO_LARGE - Microsoft Translator (Translate) can handle up to 10, 240 bytes per request