14.01.2013 Views

Oracle JHeadstart Developer's Guide - Downloads - Oracle

Oracle JHeadstart Developer's Guide - Downloads - Oracle

Oracle JHeadstart Developer's Guide - Downloads - Oracle

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

11.1.1. Which Locale is Used at Runtime<br />

11.1.2. Supported Locales<br />

ApplicationResources_nl.properties and<br />

ApplicationResources_fr.properties.<br />

The locale used to show the pages, and displayed as selected in the language drop down<br />

list is based on the property Read User Locale From, which defaults to the locale set in<br />

the browser of the end user.<br />

If you do not want to read the locale from a browser, but store it as a user preference,<br />

then you can enter an JSF EL expression in the Read User Locale From property. You<br />

will typically use an expression that reads the locale from the user context object:<br />

When you check the checkbox Generate Locale Switcher, a drop down list will be<br />

generated in the global button area which allows the end user to choose one of the<br />

supported locales (displayed through the associated language name).<br />

<strong>JHeadstart</strong> has built-in support for the following locales:<br />

pt_BR Brazilian Portuguese<br />

hr Croatian<br />

nl Dutch<br />

el Greek<br />

en English<br />

fo Faroese<br />

fr French<br />

de German<br />

ja Japanese<br />

kr Korean<br />

no Norwegian<br />

ro Romanian<br />

sr Serbian<br />

sl Slovenian<br />

es Spanish<br />

Built-in support means that if you specify one or more of these locales in the Application<br />

Definition, the Resource Bundle generated for that locale will contain the correct<br />

translations for button labels, page titles and other fixed boilerplate text generated by<br />

<strong>JHeadstart</strong>.<br />

If you have checked the checkbox Generate NLS-enabled prompts and tabs then each<br />

resource bundle will also contain entries for the prompts, tab names and display titles,<br />

but these entries are still in the language you used when specifying them in the<br />

Application Definition Editor. You will need to translate these entries manually in the<br />

<strong>JHeadstart</strong> Developer’s <strong>Guide</strong> Internationalization 11- 3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!