Class ContributionLocalizationBundle


  • public class ContributionLocalizationBundle
    extends Object
    LocalizationBundle dedicated to Contribution instances.

    Useful to gets localized labels, for example, according to the type of a contribution and also according to the component which is handling the contribution.

    It exists two possible bundle repositories:

    • a main one: org.silverpeas.contribution.multilang.contribution.properties
    • an optional component specific one: org.silverpeas.[component name].multilang .contribution.properties
    Returning the value of:
    • the component specific bundle if it defines the key
    • the main bundle otherwise
    If the key is not defined by any of bundles, then a MissingResourceException is thrown.
    Author:
    silveryocha
    • Method Detail

      • getUiMessageTitleByType

        public String getUiMessageTitleByType()
        Gets the title of the contribution, according to its type, for UI messages.
        Returns:
        a formatted string.
      • getUiMessageTitleByTypeAndProperty

        public String getUiMessageTitleByTypeAndProperty​(String property)
        Gets the title of the contribution, according to its type and a property, for UI messages.
        Returns:
        a formatted string.