Details

      Description

      I think we'll need to complete CORE-1320 to add the user's language to the session first.
      Then, create a service provider that retrieves session information, and thus, the language type (e.g. 'en_us').
      Then update the MinphpBridge service provider to set the pagination to the container. It should retrieve an instance of the Pagination class and it should pass overrides to the Pagination constructor to set the language definitions for the pagination buttons (i.e. first, last, next, prev). It should also accept settings itself to extend overrides.
      Everywhere the system calls the Pagination helper (tons of places) will have to be updated to use this new pagination container.


      Version 4.0 removes several components and helpers, one of which is the Pagination helper. In its stead is minphp/pagination. The minphp/pagination does not consider multi-language at all, and so defaults to English terms for pagination options (e.g. "<- Prev", "Next ->").

      Blesta should add language (in a global context) to support overriding the pagination language. In this case, it will use minphp/pagination and override the constructor to pass formatted settings, and the formatted settings will override the language terms based on the language of the current user.

        Issue Links

          Activity

          tyson Tyson Phillips (Inactive) created issue -
          tyson Tyson Phillips (Inactive) made changes -
          Field Original Value New Value
          Rank Ranked higher
          tyson Tyson Phillips (Inactive) made changes -
          Story Points 5
          tyson Tyson Phillips (Inactive) made changes -
          Fix Version/s 4.0.0-b6 [ 11005 ]
          Fix Version/s Short Term [ 10800 ]
          tyson Tyson Phillips (Inactive) made changes -
          Assignee Tyson Phillips [ tyson ]
          tyson Tyson Phillips (Inactive) made changes -
          Sprint 4.0.0 Sprint 18 [ 36 ]
          tyson Tyson Phillips (Inactive) made changes -
          Rank Ranked higher
          tyson Tyson Phillips (Inactive) made changes -
          Rank Ranked higher
          admin Paul Phillips made changes -
          Fix Version/s 4.0.0-b7 [ 11009 ]
          Fix Version/s 4.0.0-b6 [ 11005 ]
          tyson Tyson Phillips (Inactive) made changes -
          Sprint 4.0.0 Sprint 18 [ 36 ] 4.0.0 Sprint 18, 4.0.0 Sprint 19 [ 36, 37 ]
          tyson Tyson Phillips (Inactive) made changes -
          Rank Ranked higher
          tyson Tyson Phillips (Inactive) made changes -
          Description Version 4.0 removes several components and helpers, one of which is the Pagination helper. In its stead is minphp/pagination. The minphp/pagination does not consider multi-language at all, and so defaults to English terms for pagination options (e.g. "<- Prev", "Next ->").

          Blesta should add language (in a global context) to support overriding the pagination language. In this case, it will use minphp/pagination and override the constructor to pass formatted settings, and the formatted settings will override the language terms based on the language of the current user.
          I think we'll need to complete CORE-1320 to add the user's language to the session first.
          Then, create a service provider that retrieves session information, and thus, the language type (e.g. 'en_us').
          Then update the MinphpBridge service provider to set the pagination to the container. It should retrieve an instance of the Pagination class and it should pass overrides to the Pagination constructor to set the language definitions for the pagination buttons (i.e. first, last, next, prev). It should also accept settings itself to extend overrides.
          Everywhere the system calls the Pagination helper (tons of places) will have to be updated to use this new pagination container.

          ----

          Version 4.0 removes several components and helpers, one of which is the Pagination helper. In its stead is minphp/pagination. The minphp/pagination does not consider multi-language at all, and so defaults to English terms for pagination options (e.g. "<- Prev", "Next ->").

          Blesta should add language (in a global context) to support overriding the pagination language. In this case, it will use minphp/pagination and override the constructor to pass formatted settings, and the formatted settings will override the language terms based on the language of the current user.
          tyson Tyson Phillips (Inactive) made changes -
          Link This issue is blocked by CORE-1320 [ CORE-1320 ]
          tyson Tyson Phillips (Inactive) made changes -
          Fix Version/s 4.0.0-b7 [ 11009 ]
          tyson Tyson Phillips (Inactive) made changes -
          Fix Version/s Short Term [ 10800 ]
          tyson Tyson Phillips (Inactive) made changes -
          Sprint 4.0.0 Sprint 18, 4.0.0 Sprint 19 [ 36, 37 ] 4.0.0 Sprint 18 [ 36 ]
          tyson Tyson Phillips (Inactive) made changes -
          Rank Ranked lower
          tyson Tyson Phillips (Inactive) made changes -
          Sprint 4.0.0 Sprint 18 [ 36 ] 4.0.0 Sprint 18, 4.1.0 Sprint 4 [ 36, 41 ]
          tyson Tyson Phillips (Inactive) made changes -
          Rank Ranked higher
          tyson Tyson Phillips (Inactive) made changes -
          Assignee Tyson Phillips [ tyson ]
          jonathan Jonathan Reissmueller made changes -
          Assignee Jonathan Reissmueller [ jonathan ]
          Automated transition triggered when Jonathan Reissmueller created a branch in Stash -
          Status Open [ 1 ] In Progress [ 3 ]
          Automated transition triggered when Jonathan Reissmueller created pull request #270 in Stash -
          Status In Progress [ 3 ] In Review [ 5 ]
          Resolution Fixed [ 1 ]
          Automated transition triggered when Tyson Phillips (Inactive) merged pull request #270 in Stash -
          Status In Review [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              jonathan Jonathan Reissmueller
              Reporter:
              tyson Tyson Phillips (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Agile