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

            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