Magnolia Form Module does not support i18n
------------------------------------------
Key: MGNLFORM-63
URL: http://jira.magnolia-cms.com/browse/MGNLFORM-63
Project: Magnolia Form Module
Issue Type: Improvement
Affects Versions: 1.1.2
Environment: All
Reporter: Corin Moss
Assignee: Tobias Mattsson
Priority: Minor
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()
}
}
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------