felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Valentin Valchev (JIRA)" <j...@apache.org>
Subject [jira] Commented: (FELIX-2267) Improved locale detection
Date Mon, 12 Apr 2010 14:50:40 GMT

    [ https://issues.apache.org/jira/browse/FELIX-2267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12855993#action_12855993

Valentin Valchev commented on FELIX-2267:

I was investigating a possible solution for the problem, and tried to make at least configurable
(CM) locale available.

It seems that the problem is rather complex and would require quite a lot, really a lot of
changes not only to the web console but also to the plugins.

It is quite easy to load the resource files in the configured language, and generally this
will work. However some plugins provide additional localization. As example:

1. config plugin uses the request locale to obtain meta-type information.
2. services & bundles plugins use request locale to get localized bundle name
3. license & bundes plugins use request locale to sort bundle names in locale-specific
4. bundle plugin gets localized bundle headers, again using the request locale.

This means, that the plugin should be also aware of the configured locale. We can add new
request attribute but we cannot force the plugin to use 
instead of

> Improved locale detection
> -------------------------
>                 Key: FELIX-2267
>                 URL: https://issues.apache.org/jira/browse/FELIX-2267
>             Project: Felix
>          Issue Type: Improvement
>          Components: Web Console
>    Affects Versions: webconsole-3.0.0
>            Reporter: Carsten Ziegeler
> Currently the locale is detected by checking the request; I think we should improve this:
> - a user should be able to switch the language
> - there should be a possibility to configure a default language - I guess there are situations
where localization of the web console is simply not desired.
> So what about a new configuration value for the web console which defines the default
language - this is optional.
> The language detection might then go like this:
> - check for a cookie with a language
> - check the user for a configured language (once we have user admin support)
> - if a language is configured for the web console, use this
> - use request locale

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message