Vojtech Szocs has submitted this change and it was merged.

Change subject: userportal,webadmin: Fix behavior unsupported locale
......................................................................


userportal,webadmin: Fix behavior unsupported locale

- Changed behavior to select en_US locale if the browser
returns an unsupported locale.
- Changed behavior to select close enough locale if the
browser returns a close but unsupported locale for instance
if the browser return es, then it will be transformed into
es_ES as that is 'close'

Change-Id: Ic5beceaf7f4ce2333e83cd72c3fa8721103cf805
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=838456
Signed-off-by: Alexander Wels <[email protected]>
---
M 
backend/manager/modules/root/src/main/java/org/ovirt/engine/core/SplashServlet.java
M 
backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/LocaleUtils.java
M 
backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/servlet/LocaleFilter.java
R 
backend/manager/modules/utils/src/main/resources/org/ovirt/engine/core/utils/servlet/languages.properties
M 
backend/manager/modules/utils/src/test/java/org/ovirt/engine/core/utils/servlet/LocaleFilterTest.java
5 files changed, 73 insertions(+), 32 deletions(-)

Approvals:
  Vojtech Szocs: Verified; Looks good to me, approved


-- 
To view, visit http://gerrit.ovirt.org/15520
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ic5beceaf7f4ce2333e83cd72c3fa8721103cf805
Gerrit-PatchSet: 8
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alexander Wels <[email protected]>
Gerrit-Reviewer: Alexander Wels <[email protected]>
Gerrit-Reviewer: Einav Cohen <[email protected]>
Gerrit-Reviewer: Greg Sheremeta <[email protected]>
Gerrit-Reviewer: Vojtech Szocs <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to