Uploaded image for project: 'Magnolia Form Module'
  1. Magnolia Form Module
  2. MGNLFORM-63

Magnolia Form Module does not support i18n

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • 1.2
    • 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

        Attachments

          Activity

            People

              ochytil Ondrej Chytil
              cmoss Corin Moss
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoD