| Jakov 2004-04-22, 12:41 pm |
| Hi
I have a problem regarding localization in Oracle Help for Java(OHJ)
version 4.2.6.
I tried to localize with code listed below, but it seems that it doesnt
work. All help buttons, menus
and rest stuff are still on default English language. Oracle Help guide
refers to "LocalUtils" class but I didn't
find it, I must be doing wrong something. I am using OHJ with my custom
non-Oracle application.
...
void jButton3_actionPerformed(ActionEvent e)
{
try
{
oracle.help.Help.setHelpLocale(java.util.Locale.GERMAN);
setLocale(java.util.Locale.GERMAN);
java.net.URL tempUrl =
getClass().getClassLoader().getResource("mlsOracle/prvadva.hs");
oracle.help.library.helpset.HelpSet tempSet = new
oracle.help.library.helpset.HelpSet(tempUrl);
oracle.help.Help tempHelp = new oracle.help.Help();
tempHelp.addBook(tempSet);
tempHelp.showNavigatorWindow();
}
catch (HelpSetParseException ex)
{
ex.printStackTrace();
}
}
.....
Any help(on OHJ) appreciated.
Jakov
...
|