JBoss Community Archive (Read Only)

GateIn Portal 3.8

Multi-Language Navigation Nodes

GateIn 3.2 supports a multi-language environment for your portal allowing you to internationalize any menu entry on the navigation.

As the navigation bar is composed of nodes, you have to modify the display names of the nodes to enable this. Instead of entering the display name of the node in a defined language (English, for example) you have to use a language-neutral 'resource key'.

This resource key is then used to define the label that is shown for that node on the navigation bar, the menu and the breadcrumb.

Key Format

The resource key format is: #{key}

The resource key can contain any text that you consider appropriate to satisfy your business needs. It should, however, be human-readable and must not contain spaces.

Creating Keys using Create Page Wizard

  1. **
    Open the Site Editor menu and pick Add New Page.

  2. **
    Enter a name for this new page

  3. **
    Enter a resource key in the Display Name field.

    images/author/download/attachments/78709419/PageWizard.png
  4. **
    Click Next. On the next screen you may define a page layout out of existing templates.

  5. **
    Click Next to finalize the page creation with portlets for instance.

Creating/Editing Keys using Navigation Management

  1. **
    Click on Site in the Toolbar then Edit Navigation

    images/author/download/attachments/78709419/NavigationManagement.png
  2. **
    Click on Add Node

  3. **
    The Create/Edit node dialog appears. Enter a resource key in the Label field
    images/author/download/attachments/78709419/CreateEditNode.png

    Reusing Keys

    You can reuse the same resource key in several nodes.

Providing translation

To provide a translation for the resource key used as page name, resource bundles must be provided within the web archive.

Property files (or XML resource bundles) must be located in: WEB-INF/classes/locale/navigation/portal/[portalName]_2letterCode.properties

JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-10 13:27:29 UTC, last content change 2012-10-09 15:03:41 UTC.