Bug in GlassFish: Strange behavior of GF Admin Console GUI display language - from Helena

Many times during our i18n/l10n testing we have observed quite a strange behavior of GF Admin Console, particularly of its display language in dependence on the language settings of the machine where GF is running and of the browser used to access the Admin Console. We even thought of a dependency on some other factors, such as the system locale of the machine where Admin Console is accessed from, but these have not been proved yet. Since we believe this bug has quite some impact for non English users, we hope to attract some attention or raise a discussion around this problem :)

So, what we have observed is:

- When the (Linux) machine where GF is running is set to English like export LANG=en_US.UTF-8, everything may seem to be OK - the Admin Console GUI respects the preferred language of the browser via which it is accessed (English, German or French).

- When the machine where GF is running is set to German and then the Admin Console is accessed via a browser with its preferred language set to English, the Admin Console is always displayed in German. When the browser preferred language is changed to French and the page is reloaded (or logout/login is performed), the Admin Console displays in French (as it should). Setting the browser preferred language to German causes the Admin Console to display in German (OK).

- The behavior is analogous when the machine where GF is running is set to French.


Summarized, the display language behavior looks like this:

BROWSER LANGUAGE

LANGUAGE OF THE MACHINE WHERE GF IS RUNNING

EN

DE

FR

EN

EN

DE

FR

DE

DE

DE

DE

FR

FR

FR

FR


Moreover, the Admin Console GUI also seems to somehow remember the previously set language, which takes effect in the way of displaying some messages and a few other things in the previous language. To see this, try for example:

  1. Set the browser preferred language to French and access the GF Admin Console. It should be displayed in French.

  2. Log out, set the browser preferred language to German, reload the login page and log in. Now the Admin Console should be displayed in German.

  3. Press the Logout button, a message should appear asking you whether you really wish to log out – this message will be French now. Click OK (Yes).

  4. Do not change anything, just log in again.

  5. Press the Logout button again, now the same message will appear in German.

  6. You can try switching back to French, logging in and out – you will receive a German message this time.

  7. And so on ...


A very similar behavior can be observed e.g. at the Login button tooltip, some error messages, etc...

There is already some Java bug filed for this issue, but we could not find it. If you are facing those problem and it affects you, let us know (g11n@glassfish.dev.java.net) and we'll might be able to push more for it.

Note 1: The GF domain needs to be restarted every time the system language of the machine is changed for the change to take effect.

Note 2: We have not included Spanish or other languages into the experiments, but we expect that its behavior will be similar to German and French.

Note 3: Tried with SUSE Linux Enterprise Server 10 and Firefox 3 on Solaris.

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Members of the EMEA Globalization Center are blogging about the products that comprise the Java Enterprise System stack.

Search

Archives
« July 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  
       
Today