Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-21531

As a user I need a way to pick correct Content name language

    Details

      Description

      Similar needs as the field selection for translated properties.

      $content->contentInfo->name always returns the content name in the main language (not translated). To access to translated name, we need to use $content->versionInfo->names['eng-GB'].
      But in a template, we don't always have knowledge of the current locale (or we might don't want to), so a helper to get translated name is needed.

      Furthermore, if the current locale is not available as a translation for the content, we then need to use prioritized languages.

        Issue Links

          Activity

          Show
          Jérôme Vieilledent (Inactive) added a comment - PR: https://github.com/ezsystems/ezpublish-kernel/pull/535
          Show
          Jérôme Vieilledent (Inactive) added a comment - Implemented in master: https://github.com/ezsystems/ezpublish-kernel/commit/29dfb03795acb0d4dd2284bd87fd9976bf5a1076
          Show
          Jérôme Vieilledent (Inactive) added a comment - Doc updated: https://confluence.ez.no/display/EZP/Content+view#Contentview-RenderingContentname
          Hide
          Pedro Resende (Inactive) added a comment -

          Tested and approved by Q.A.

          Show
          Pedro Resende (Inactive) added a comment - Tested and approved by Q.A.

            People

            • Assignee:
              Unassigned
              Reporter:
              André Rømcke
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 30 minutes
                3h 30m