DeepLTranslationMacro
This macro allows to add a translation link, which will then be used to translate any HTML block in a wiki page. The macro can be added inline or as a block.
Usage
Parameter | Mandatory | Description | Default value |
---|---|---|---|
cssSelector | Yes | Indicate which CSS block should be translated. | N/A |
classSelector | No | Allows to only display the translation link if the current page has at least one object of the class specified in classSelector. If the parameter is empty, no restriction gets applied. | N/A |
extraCssClasses | No | Allows to only display the translation link if the current page has at least one object of the class specified in classSelector. If the parameter is empty, no restriction gets applied. | N/A |
Example
This is a text in english. If you access this page with the wiki configured in another language, you should see a translate link appearing below.