If you are designing your site to serve content to multiple visitor locales, set up a separate page directory for each of your site’s visitor locales. Each locale-specific directory should be at the same level directly under the document root (for JHTML pages) or context root (for JSPs).

All the Web site’s content pages should be mirrored for each locale, even if only a portion of the content in each directory is translated. In the following example for JHTML directories, there are four directories, one each for English, French, German, and Japanese content. The four directories have mirrored sub-directories:

<docroot>/en/
<docroot>/fr/
<docroot>/de/
<docroot>/ja/

The next example shows the directory structure for a JSP-based Web application (in this case, the Quincy Funds demo):

DSSJ2EEDemo/j2ee-apps/QuincyFunds/web-app/en/
DSSJ2EEDemo/j2ee-apps/QuincyFunds/web-app/fr/
DSSJ2EEDemo/j2ee-apps/QuincyFunds/web-app/de/
DSSJ2EEDemo/j2ee-apps/QuincyFunds/web-app/ja/

The pages should be translated according to the translating instructions in Creating Locale-Specific Content Pages section.

If you use the EncodingTyper component to determine the character encoding for the content pages, you must then configure the EncodingTyper to map each of the directories to the correct encoding. For more information, see Using the EncodingTyper to Set the Character Encoding in this chapter.

 
loading table of contents...