Bug 894288

Summary: RHEVM GUI: Failure to language selection in specific case
Product: Red Hat Enterprise Virtualization Manager Reporter: Hirofumi Kojima <hkojima>
Component: ovirt-engine-webadmin-portalAssignee: Alexander Wels <awels>
Status: CLOSED ERRATA QA Contact: Jiri Belka <jbelka>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.1.0CC: cchen, dyasny, ecohen, iheim, knesenko, Rhev-m-bugs, sgrinber, ykaul
Target Milestone: ---   
Target Release: 3.2.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: ux
Fixed In Version: sf13 Doc Type: Bug Fix
Doc Text:
English was defined as the default locale, which worked if the browser's locale was English, but users with a browser locale other than English were unable to select the English locale. Now, English is defined as a fallback, so users in all locales can select English regardless of their default locale.
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-10 21:42:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Hirofumi Kojima 2013-01-11 10:29:40 UTC
Description of problem:


Version-Release number of selected component (if applicable):
rhevm-webadmin-portal-3.1.0-32.el6ev

How reproducible:
Always

Steps to Reproduce:
1. The locale setting of Firefox(RHEL6.3) is Japanese.
2. Reload Firefox.
3. Select language from the list on RHEV-M login screen. 
  
Actual results:
I cannnot change language.(Remain in Japanese)

Expected results:
I can change selected language from japanese.

Comment 1 Einav Cohen 2013-01-11 15:47:10 UTC
when attempting to reproduce it, I managed to replace the language successfully for all languages other than English.

When trying to change the language to English (which is the application's default language), the application is being loaded in the language of the browser's default locale (Japanese in your case).

Can you please confirm that?

Comment 2 Hirofumi Kojima 2013-01-11 23:07:26 UTC
> When trying to change the language to English (which is the application's
> default language), the application is being loaded in the language of the
> browser's default locale (Japanese in your case).
Sure. 
Language on RHEV Admin Portal seems to depend on the browser's default locale. 

And so, if there is difference between "browser's default locale" and "language selection on RHEV-M login screen", then there is a case that language selection does not work well.

For Example,...
Case 1: Default locale of Firefox is Engilish.
I can use Japanese on RHEV-M Admin Portal. 
Case 2: Default locale of Firefox is Japanese.
I cannot use English on RHEV-M Admin Portal.
But in this case 2, I can use other language (Japanese, French, German, Spanish or Simplified Chinese), but I cannot use English.

Is this a Bug or Specification ?

Comment 3 Einav Cohen 2013-01-12 00:44:43 UTC
(In reply to comment #2)
> > When trying to change the language to English (which is the application's
> > default language), the application is being loaded in the language of the
> > browser's default locale (Japanese in your case).
> Sure. 
> Language on RHEV Admin Portal seems to depend on the browser's default
> locale. 
> 
> And so, if there is difference between "browser's default locale" and
> "language selection on RHEV-M login screen", then there is a case that
> language selection does not work well.
> 
> For Example,...
> Case 1: Default locale of Firefox is Engilish.
> I can use Japanese on RHEV-M Admin Portal. 
> Case 2: Default locale of Firefox is Japanese.
> I cannot use English on RHEV-M Admin Portal.
> But in this case 2, I can use other language (Japanese, French, German,
> Spanish or Simplified Chinese), but I cannot use English.
> 
> Is this a Bug or Specification ?

It seems that everything is working fine if the browser's default locale is English (Case 1).

However, case 2 is defintiely a bug: 

regardless of your browser's default locale:

- all RHEV-M's supported languages (including English) should be available to you for display. 

- when you choose "English" in the locale drop-down, the application should be displayed in English, not in any other locale.

Comment 4 Alexander Wels 2013-01-15 13:57:35 UTC
The problem was that 'English' was defined as the 'default' locale which is not the case if the default browser locale is another locale like Japanese. I added a specific English locale to the compile step (increasing the permutation by 6!). The patch is available here:
http://gerrit.ovirt.org/11047

Comment 13 Jiri Belka 2013-04-05 10:27:26 UTC
OK, sf13, FF10.x from japanese gnome env.

Comment 16 errata-xmlrpc 2013-06-10 21:42:35 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2013-0888.html