In addition to the built-in Translation module connectors, you can implement your own translation connector with custom logic to serve your requirements. You do this by using the Translation API to implement the overall translation process and then configuring Sitefinity CMS to use your connector in one of the ways described in this article.
In Sitefinity CMS you can automatically configure a connector to a translation service using an assembly attribute. The assembly attribute is called TranslationConnectorAttribute.
TranslationConnectorAttribute
When the website initializes, Sitefinity CMS looks in the /bin folder for assemblies that contain connector implementations and are marked with this attribute. In case it finds such assemblies, Sitefinity CMS automatically adds the translation connector’s configurations that are specified in the assembly attribute.
/bin
The TranslationConnectorAttribute has the following parameters:
Name
ConnectorType
Title
Enabled
RemoveHtmlTags
SupportedLanguages
parameters
GITHUB EXAMPLE: You can see an example of the TranslationConnectorAttribute assembly attribute in Sitefinity’s GitHub repository » microsoft-machine-translator-connector » MicrosoftMachineTranslatorConnector.cs
In addition to the abovementioned assembly attribute, you can make the same translation connector configurations using the Advanced settings UI.
To configure a connector, perform the following:
Sign up for our free beginner training. Boost your credentials through advanced courses and certification. Register for Sitefinity training and certification.
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important