You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Manuel Carrasco (JIRA)" <ji...@apache.org> on 2009/11/14 12:17:39 UTC

[jira] Updated: (HUPA-21) Automatic use the right locale (depending on the users locale)

     [ https://issues.apache.org/jira/browse/HUPA-21?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Manuel Carrasco updated HUPA-21:
--------------------------------

    Attachment: locale_detection.patch

This patch includes client side language selection in order to load the appropriate internationalised  gwt javascript code. It doesn't use any server call, and the normal ways in gwt to set the language (using url locale parameter, locale metatag, or window.__gwt_Locale variable) continue working.

The user language reported by the browser is just the language used for the application (menus, messages, etc), it is not the Accept-Language header configurable by the user in most browsers, which is only available in server side.

I think this patch covers a hight percentage of cases. For instance it works fine when an user selects the language at login time in linux, Mac, etc, and with the default user's language in windows. For the rest of cases we can put links with the supported languages in the login page.

To cover all the user cases we would need server side code to rewrite the Hupa.html page with the language detected once analysed the request headers, or we need to make an Ajax call to ask the server.  

I think the last approach introduces complexity which isn't worth it. 

What do you guys think?

Manolo

> Automatic use the right locale (depending on the users locale)
> --------------------------------------------------------------
>
>                 Key: HUPA-21
>                 URL: https://issues.apache.org/jira/browse/HUPA-21
>             Project: JAMES Hupa
>          Issue Type: Improvement
>            Reporter: Norman Maurer
>            Assignee: Norman Maurer
>         Attachments: locale_detection.patch
>
>
> Hupa should use the "default" locale of the users webbrowser by default. This is possible using some classes of the gwt-incubater.
> More infos here:
> http://code.google.com/docreader/#p=google-web-toolkit-incubator&s=google-web-toolkit-incubator&t=ServerSideLocaleSelection

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org