Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-7391

System i18n: Template definition's 'title' should be i18n-ized comparable to 'labels' & 'description' of form-fields or apps.

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Neutral
    • Resolution: Unresolved
    • Affects Version/s: 5.6.7, 5.7.1
    • Fix Version/s: None
    • Component/s: i18n
    • Labels:
      None

      Description

      The input came from Deutschebahn DB in my last training, they will need it in their project.

      Our 'System i18n' implementation allows to translate everything seen by the author in admin central:

      • labels of Actions
      • labels & descriptions of form fields
      • etc

      But there is one big missing piece:

      The 'title' of a template definition (pages & components).

       

      Here a screen overview of what is translate able (yellow) and what not (red):

      1. Page's browser app: looking at a website tree
      2. Page's browser app: creating a new page / choosing a page template
      3. Page's detail app: existing components on a page
      4. Page's detail app: adding a new components / choosing a component template
      5. Page's detail app: Area names on a page

      Solution for pages & components

      The same logic could be applied to the property 'title' of a template definition as its used for 'label' and 'description' in other places:
      "If there is no title defined in a template definition, resolve the auto generated key in a message bundle file."

      Solution for areas

      This one is a bit harder as the default area definition does not have a title set usually -> suddenly everywhere a i18n key would appear on the area green bars.

      Here I would reverse the logic:

      • if no 'title' defined then behave as now -> use the area name
      • if a title is defined one can add manually a i18n key which gets:
        • first resolved in a message bundle file and if not resolvable then used as static string

        Attachments

        1. Areas.png
          Areas.png
          109 kB
        2. Components1.png
          Components1.png
          185 kB
        3. Components2.png
          Components2.png
          84 kB
        4. Pages.png
          Pages.png
          149 kB
        5. Pages2.png
          Pages2.png
          38 kB

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            cringele Christian Ringele
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response: