Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-4151

HippoNode.getLocalizedName() always returns the first translation available

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • High
    • Resolution: Fixed
    • r2.12.10
    • r2.15.00
    • None
    • None

    Description

      As far as I've understood, this method is meant to be called every time that you have a node that has "hippo:translated" as mixin, with one or more "hippo:translation" child nodes.
      The expected behaviour should be - if I've understood correctly - that when I do something like

      ((HippoNode) hippoBean).getLocalizedName()

      I got the translation of that node's label in Locale.getDefault() or English as fallback.

      This thing seems to work fine for documents but has some troubles with folders: in my tests the first hippo:translation child node is always returned as localized label.

      See http://hippo.2275632.n2.nabble.com/HippoNode-getLocalizedName-td5014946.html

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              fchicchiricco Francesco Chicchiriccò
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: