Details
-
Type: Improvement
-
Status: Closed
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 4.0.0-b1
-
Fix Version/s: Short Term
-
Component/s: Client Interface, Staff Interface
-
Labels:None
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
- is blocked by
-
CORE-1320 Add a language selector to non-authenticated client pages if multiple languages are installed for the company
- Closed
Activity
Field | Original Value | New Value |
---|---|---|
Rank | Ranked higher |
Story Points | 5 |
Fix Version/s | 4.0.0-b6 [ 11005 ] | |
Fix Version/s | Short Term [ 10800 ] |
Assignee | Tyson Phillips [ tyson ] |
Sprint | 4.0.0 Sprint 18 [ 36 ] |
Rank | Ranked higher |
Rank | Ranked higher |
Fix Version/s | 4.0.0-b7 [ 11009 ] | |
Fix Version/s | 4.0.0-b6 [ 11005 ] |
Sprint | 4.0.0 Sprint 18 [ 36 ] | 4.0.0 Sprint 18, 4.0.0 Sprint 19 [ 36, 37 ] |
Rank | Ranked higher |
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 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. |
Fix Version/s | 4.0.0-b7 [ 11009 ] |
Fix Version/s | Short Term [ 10800 ] |
Sprint | 4.0.0 Sprint 18, 4.0.0 Sprint 19 [ 36, 37 ] | 4.0.0 Sprint 18 [ 36 ] |
Rank | Ranked lower |
Sprint | 4.0.0 Sprint 18 [ 36 ] | 4.0.0 Sprint 18, 4.1.0 Sprint 4 [ 36, 41 ] |
Rank | Ranked higher |
Assignee | Tyson Phillips [ tyson ] |
Assignee | Jonathan Reissmueller [ jonathan ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | In Review [ 5 ] |
Resolution | Fixed [ 1 ] |
Status | In Review [ 5 ] | Closed [ 6 ] |