The Quincy Funds application can display content in English, French, German, and Japanese. When you modify your language preference, the navigation bar and the feature links change to the selected language. Any dates, times, percentages, and currencies on each page also adhere to that language selection.
As a guest, you can adjust your language preference on your home page. As a registered member, you can specify a language preference, which is carried across site visits. At any time, you can change your language through the My Preferences page.
About Locales (for Programmers)
A locale is a code that represents a language/country combination. The locales supported in Quincy Funds are as follows:
Language / Country | Locale |
---|---|
English / United States |
|
French / France |
|
German / Germany |
|
Japanese / Japan |
|
Oracle Commerce Platform determines a visitor’s locale by scanning these parameters in this order and implementing the first that contains a valid value:
The locale property in a visitor’s profile
The
Accept–Language HTTP
header, which can be set on the visitor’s browserThe default visitor locale
The server locale
For example, to display a guest visitor’s home page in the correct language, Oracle Commerce Platform first looks to the guest’s profile for the locale property, which is always null. Then it refers to the visitor’s browser for the Accept–Language HTTP
setting. If none exists, the system pulls the locale information from the default visitor locale. Finally, if none of these settings are configured, it uses the server locale.
Locales at Work
In the Quincy Funds application, a directory is set up for each of the site’s locales. The locale-specific files are in the following directories:
<ATG11dir>/DSSJ2EEDemo/j2ee-apps/QuincyFunds/web-app/en
<ATG11dir>/DSSJ2EEDemo/j2ee-apps/QuincyFunds/web-app/fr
<ATG11dir>/DSSJ2EEDemo/j2ee-apps/QuincyFunds/web-app/de
<ATG11dir>/DSSJ2EEDemo/j2ee-apps/QuincyFunds/web-app/ja
A separate Features repository contains feature articles in each supported locale.
When a visitor opens the Quincy Funds home page, the index
page is displayed. This page contains a Switch
servlet bean that finds the visitor’s locale (through the process outlined above) and displays the home page in the corresponding language directory. This is an example of content rendered dynamically through components.
For more information on the Switch
servlet bean, see the Page Developer's Guide.
Displaying Japanese Characters
If you are running a Western operating system, you need to configure your computer to accept double-byte, non-Latin characters. If you have not installed the Japanese character set on your machine, refer to your operating system instructions on how to do so. Then configure your preferred browser by modifying the font settings.
To configure Internet Explorer:
Launch Internet Explorer. Select Tools > Internet Options.
Click Languages. Click Add, and select Japanese. Click OK.
Click Fonts, select Japanese, then click OK.
Click OK to save your changes and close the dialog box.
Close and relaunch the browser.
Select View > Encoding > More > Japanese (Auto-Select). Each time you open the browser, you need to enter this setting.
To change your browser back to your default language, return to the language settings and move your preferred language to the top of the list.
You may also need to configure the ATG Control Center (ACC) to allow you to view Japanese files. For more information, see the Platform Programming Guide.