You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2010/10/25 09:03:25 UTC

[jira] Commented: (FELIX-2668) Add localization for the meta-type

    [ https://issues.apache.org/jira/browse/FELIX-2668?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12924473#action_12924473 ] 

Felix Meschberger commented on FELIX-2668:
------------------------------------------

Sorry, for the delay....

Yes, I think this would make perfect sense.

And if we point the localization attribute of the metatype descriptor to the web console i18n files, we should even be able to reuse the existing i18n files.

Will you do the patch ? Thanks.

> Add localization for the meta-type
> ----------------------------------
>
>                 Key: FELIX-2668
>                 URL: https://issues.apache.org/jira/browse/FELIX-2668
>             Project: Felix
>          Issue Type: Improvement
>          Components: Web Console
>    Affects Versions: webconsole-3.1.2
>            Reporter: Valentin Valchev
>
> Currently the meta-type provider ConfigurationListener2 uses hard-coded values for description of the properties. So as example, when you switch to German language and go to the Configuration, you will see the English metatype information for the web console configuration.
> What about having a resource file containing the meta-type data? A separate or event the same i18n properties, that we use for localizing the UI!
> So in implementation of getObjectClassDefinition( String id, String locale ), we can use the locale parameter and get the correct resource bundle.
> The we can assume the localization keys for the Object Class Definition are:
> metadata.name=Apache Felix OSGi Management Console
> metadata.description=Configuration of the Apache Felix OSGi Management Console.
> and for each attribute it can be:
> metadata.<key>.name=the name
> metadata.<key>.description=description
> or as example for 'manager.root' property it will be:
> metadata.manager.root.name=Root URI
> metadata.manager.root.description=The root path to the OSGi Management Console
> WDYT?

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