HQU Localization

Plugins can include standard .properties localization bundles within their etc directory.

ui_plugins/cool/etc/cool_i18n.properties
Localize in .GSPs

A special variable is available in rendered .GSPs which allow them to easily get i18n values.
The lower-case letter 'l' is automatically replaced with a LocaleBundle

   ${l.Greeting} ${user.name}<br>
   or $l['Hello'] ${user.name}
Localize in the Controller

The BaseController provides getLocaleBundle() which returns Map facade over a ResourceBundle

    def getName(u) {
        "${localeBundle.NameIs}: ${u.name}"
    }

Browse Space

- Pages
- News
- Labels
- Attachments
- Bookmarks
- Mail
- Advanced
- Activity

Explore Confluence

- Popular Labels
- Notation Guide

Your Account

Log In

or Sign Up  

Other Features

Add Content


System Monitoring Software
SourceForge.net Logo