Add translation to custom content app
To be able to translate content from custom content apps the following has to be done.
| This can be done directly in the app or via decoration (if you don’t own the app). |
subApps:
browser:
actions:
addToTranslationBatch: (1)
label: Add to translation batch
$type: openDialogAction
dialogId: content-translation-support-ext-core:addToTranslationBatch
icon: icon-add-folder
availability:
writePermissionRequired: true
access:
roles: (2)
superuser: superuser
nodeTypes: (3)
- mgnl:asset
- mgnl:contentNode
- mgnl:page
- mgnl:folder
- mgnl:content
rules:
- name: IsNotDeletedRule
implementationClass: info.magnolia.ui.framework.availability.IsNotDeletedRule
multiple: true
root: false
actionbar:
sections:
item:
groups:
activationActions:
items:
addToTranslationBatch: {} (4)
| 1 | Add addToTranslationBatch to the content app. |
| 2 | Choose the roles which should be able to use the action. |
| 3 | Add the nodeTypes which should get translated. |
| 4 | Add the Action to the actionbar. |