# Including component-specific messages

Resource bundles should include a handful of component-specific messages that allow the Discovery Framework to localize the name, description, keywords, and category of the component.

To localize the component's metadata, include the following messages:

    javax.portlet.title=Sample Endeca Portlet
    javax.portlet.short-title=Sample Endeca Portlet
    javax.portlet.keywords=Sample, Endeca, Portlet

Additionally, if your component is displayed in the Add Components menu as part of a custom category (or sub-category), you may need to localize the name of the category. Take the following categories as an example:

    <display>
      <category name="my.new.category">
        <category name="my.new.sub-category">
          <portlet id="portlet_A" />
        </category>
      </category>
    </display>

To localize the category names, have your component's resource bundle include the following messages:

    my.new.category=My Category
    my.new.sub-category=My Sub-Category

If multiple components declare the same categories, they should all include these messages, since the component container uses the localized messages from the first component that specifies them.