-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Improve Handling Default Language Selection from UI - MEED-7144 -
Meeds-io/meeds#2230 (#935) Prior to this change, the language cache key was using the language without the country specialization. This change will ensure to use the language full representation string using `toLanguageTag` instead of `getLanguage`. At the same time, this will fix the `User Locale` retrieved from `LocalePolicy` service on each Web Controller Handler plugin.
- Loading branch information
Showing
12 changed files
with
53 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,6 +51,8 @@ | |
import org.exoplatform.web.application.javascript.JavascriptConfigService; | ||
import org.exoplatform.web.controller.QualifiedName; | ||
|
||
import io.meeds.spring.web.localization.HttpRequestLocaleWrapper; | ||
|
||
/** | ||
* @author <a href="mailto:[email protected]">Tuyen Nguyen The</a>. | ||
*/ | ||
|
@@ -118,7 +120,7 @@ public PasswordRecoveryHandler(PortalContainer container, // NOSONAR | |
|
||
@Override | ||
public boolean execute(ControllerContext controllerContext) throws Exception {// NOSONAR | ||
HttpServletRequest request = controllerContext.getRequest(); | ||
HttpServletRequest request = new HttpRequestLocaleWrapper(controllerContext.getRequest()); | ||
HttpServletResponse response = controllerContext.getResponse(); | ||
|
||
Locale locale = request.getLocale(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters