Change in ovirt-engine[master]: userportal, webadmin: Fix behavior unsupported locale

vszocs at redhat.com vszocs at redhat.com
Wed Jun 12 16:45:48 UTC 2013


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 <awels at redhat.com>
---
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 <awels at redhat.com>
Gerrit-Reviewer: Alexander Wels <awels at redhat.com>
Gerrit-Reviewer: Einav Cohen <ecohen at redhat.com>
Gerrit-Reviewer: Greg Sheremeta <gshereme at redhat.com>
Gerrit-Reviewer: Vojtech Szocs <vszocs at redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list