Details
-
Improvement
-
Resolution: Fixed
-
Minor
-
1.1.2
-
None
-
None
-
All
Description
The magnolia Form Module is not configured to support multiple languages (i18n.)
Modifying it to support i18n appears to be trivial, and involves setting a property of i18n to true for each control defined for the form dialogs.
Here is a short example Groovy script that does that:
hm = ctx.getHierarchyManager('config') root = hm.getContent("/modules/form/dialogs") root.getChildren("mgnl:contentNode").each{cn-> cn.getChildren("mgnl:contentNode").each{cn2-> cn2.getChildren("mgnl:contentNode").findAll{cn3-> cn3.controlType == 'edit' }.each{editControl -> if(!editControl.i18n) { editControl.setNodeData('i18n', true) editControl.save() } } } }
Checklists
Acceptance criteria