Wiki-Quellcode von DeepLTranslationMacro
Version 4.1 von Georg Klimm am 182.07.2025
Zeige letzte Bearbeiter
| author | version | line-number | content |
|---|---|---|---|
| 1 | 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. | ||
| 2 | |||
| 3 | **Usage** | ||
| 4 | |||
| 5 | |=Parameter|=Mandatory|=Description|=Default value | ||
| 6 | |##cssSelector##|Yes|{{velocity}}$services.localization.render('rendering.macro.deeplTranslation.parameter.cssSelector.description'){{/velocity}}|//N/A// | ||
| 7 | |##classSelector##|No|{{velocity}}$services.localization.render('rendering.macro.deeplTranslation.parameter.classSelector.description'){{/velocity}}|//N/A// | ||
| 8 | |##extraCssClasses##|No|{{velocity}}$services.localization.render('rendering.macro.deeplTranslation.parameter.classSelector.description'){{/velocity}}|//N/A// | ||
| 9 | |||
| 10 | **Example** | ||
| 11 | |||
| 12 | (% class="myTestTranslation" %) | ||
| 13 | ((( | ||
| 14 | 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. | ||
| 15 | ))) | ||
| 16 | |||
| 17 | {{deeplTranslation cssSelector=".myTestTranslation"/}} |