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

Inject the correct language list in PlatformUI

    Details

      Description

      For now the language list in PlatformUI is hardcoded in https://github.com/ezsystems/PlatformUIBundle/blob/master/Resources/public/js/views/services/ez-languageselectionboxviewservice.js#L37
      The App should receive the language list from an App config provider. To help implementing EZP-24654 in the future, the App should receive Language object with at least the language code and the language name.

        Issue Links

          Activity

          Hide
          Damien Pobel (Inactive) added a comment -

          When the sub tasks is done, the app config attribute will have a languages entry which is an array of the available languages (see https://jira.ez.no/browse/EZP-24875?focusedCommentId=177786&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-177786). I think you should take this array and transform it into a hash indexed by languageCode and store it in a new read only app attribute called systemLanguageList. Then in the language selection box view service, you just have to replace the hardcoded list with the list provided by the app.

          Show
          Damien Pobel (Inactive) added a comment - When the sub tasks is done, the app config attribute will have a languages entry which is an array of the available languages (see https://jira.ez.no/browse/EZP-24875?focusedCommentId=177786&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-177786 ). I think you should take this array and transform it into a hash indexed by languageCode and store it in a new read only app attribute called systemLanguageList . Then in the language selection box view service, you just have to replace the hardcoded list with the list provided by the app.
          Show
          Mateusz Hyndle (Inactive) added a comment - PR: https://github.com/ezsystems/PlatformUIBundle/pull/355
          Show
          Damien Pobel (Inactive) added a comment - Merged in master in https://github.com/ezsystems/PlatformUIBundle/commit/c071837b8c1c13f69c211521ddb9b970bb0934b3
          Hide
          Rui Silva (Inactive) added a comment -

          Cannot proceed with testing this while it's blocked by EZP-24654.

          Show
          Rui Silva (Inactive) added a comment - Cannot proceed with testing this while it's blocked by EZP-24654 .
          Hide
          Rui Silva (Inactive) added a comment -

          Tested and approved by QA for master.

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

            People

            • Assignee:
              Unassigned
              Reporter:
              Damien Pobel (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 4 hours
                4h