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

Content Type controller should use Languages more wisely

    Details

      Description

      The content type controller uses languages from siteaccess settings, ref ezplatform.yml ezpublish|system|site_group|languages and https://github.com/ezsystems/PlatformUIBundle/blob/master/Resources/config/services.yml#L140

      We should use the LanguageService to verify that the prioritised languages exist in the repo.
      We should verify that the requested language is among the prioritised languages, and if not, we should fallback to using the language the CT is in.

        Issue Links

          Activity

          Hide
          André Rømcke added a comment -

          Yes, this is a entirely separate story for backlog, with dx label on it, a related one would be to stop using our own locale and use the one in symfony to avoid the mapping and gotchas around that.

          Show
          André Rømcke added a comment - Yes, this is a entirely separate story for backlog, with dx label on it, a related one would be to stop using our own locale and use the one in symfony to avoid the mapping and gotchas around that.
          Hide
          Gunnstein Lye added a comment - - edited

          Merged in 1.3@f99fd3f (v1.3.1) and master@79c3d1b (v1.4.0).

          Show
          Gunnstein Lye added a comment - - edited Merged in 1.3@f99fd3f (v1.3.1) and master@79c3d1b (v1.4.0).
          Hide
          Bertrand Dunogier added a comment -

          Gunnstein, anything we might wanna want to document from a developer or user's perspective there ?

          Show
          Bertrand Dunogier added a comment - Gunnstein, anything we might wanna want to document from a developer or user's perspective there ?
          Hide
          Gunnstein Lye added a comment -

          DOC: If you request a CT in a language it isn't translated to, or which is not among the prioritised languages (ezplatform.yml ezpublish|system|site_group|languages) then you'll get it in the language the CT is translated to.
          If the language the CT is translated to doesn't exist in the repository, the request will fail.
          This is all subject to change when we implement https://jira.ez.no/browse/EZP-24451

          Show
          Gunnstein Lye added a comment - DOC: If you request a CT in a language it isn't translated to, or which is not among the prioritised languages (ezplatform.yml ezpublish|system|site_group|languages) then you'll get it in the language the CT is translated to. If the language the CT is translated to doesn't exist in the repository, the request will fail. This is all subject to change when we implement https://jira.ez.no/browse/EZP-24451
          Hide
          Rui Silva (Inactive) added a comment -

          Tested and approved by QA for 1.3 and master.

          Show
          Rui Silva (Inactive) added a comment - Tested and approved by QA for 1.3 and master.

            People

            • Assignee:
              Unassigned
              Reporter:
              Gunnstein Lye
            • Votes:
              0 Vote for this issue
              Watchers:
              7 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 - 1 week, 4 hours
                1w 4h