Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-2668

Add localization for the meta-type

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: webconsole-3.1.2
    • Fix Version/s: webconsole-3.1.6
    • Component/s: Web Console
    • Labels:
      None

      Description

      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?

        Attachments

        1. bundle_ru.properties.patch
          4 kB
          Victor Antonovich
        2. meta-data-localization.patch
          18 kB
          Valentin Valchev

          Activity

            People

            • Assignee:
              v_valchev Valentin Valchev
              Reporter:
              v_valchev Valentin Valchev
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: