OHW: localeSettings element & Asian languages
I'm using OHW for on-line help for our internationalized product, and have come across some interesting issues, especially when running under an Asian language such as Japanese or Chinese.
Using the recommended one servlet for each locale, I used the OHW example instructions and created a Japanese servlet, with the localesettings element set to...
<localeSettings>
<locale language="ja" country="JP" />
<controlFileEncoding encoding "Shift_JIS">
</localeSettings>
When I run this servlet on either my English or Japanese Win2K machine, the labels for the Index, Contents and Search tabs aren't localized (remain in English). The "Go" button, the "View Topic" tab and the "Printable Page" is garbled (boxes -- usually indicating problems with fonts.) What is also interesting on my Japanese Win2K machine, if I run the English servlet (the OHW example with no modifications to <localeSettings>, then these tabs have English labels until I switch to a different helpset. After that, the tab labels do indeed have Japanese text with no garbled characters. OHW does not have any trouble displaying the actual help content in Japanese. I also set up a Simplified Chinese servlet and it has similar problems displaying the tab labels. All of these tests were using IE properly configured for the locales; the Japanese Win2K machine uses JDK1.3.1_04 for JAVA_HOME, the English Win2K machine uses JDK1.4.0_02.
For further testing, I set up a German and French servlet, they had no garbled text, but also on occasion would not switch the tabs to German or French until I selected a different helpset.
Do you have a good example of ohwconfig.xml for running a Japanese servlet? (other Asian languages would be a plus...) From the OHW documentation, it appears that you should be able to run servlets in multiple locales on the same system, is this correct? As well, what is the relationship between the <localeSettings> element and the JVM's system default locale; which takes precendence? From my test with my Japanese Win2K machine, it appears that the system default locale wins out. Even though I set up an English servlet with the localSettings to "en" and "US", the tab labels and OHW user interface were displayed in Japanese.
thanks,
Elizabeth Dyer.