This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 24752 - I18N - welcome window contents don't come from locale files
Summary: I18N - welcome window contents don't come from locale files
Status: VERIFIED FIXED
Alias: None
Product: usersguide
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: Sun Solaris
: P2 blocker (vote)
Assignee: Richard Gregor
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2002-06-13 21:19 UTC by Ken Frank
Modified: 2003-07-22 19:11 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
what modified welcome_ja.html should look like in ide (9.43 KB, text/html)
2002-06-13 21:22 UTC, Ken Frank
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ken Frank 2002-06-13 21:19:09 UTC
Filing here since welcome.jar in modules/docs.

Using beta1 and pseudo localizing welcome.jar
so that modules/docs//locale has welcome_ja.jar
with Bundle_ja.properties and<filename>_ja.html.

But when run in ja locale, the information in
welcome window does not come from these files.

But the Welcome tab message does, and its from
welcome.jar bundle file - so it seems that that
part is using the locale file, but not anything
that actually on welcome screen.

Attached is one of the html files that were
modified - this is not a screen shot of ide.
Comment 1 Ken Frank 2002-06-13 21:22:20 UTC
Created attachment 6254 [details]
what modified welcome_ja.html should look like in ide
Comment 2 Patrick Keegan 2002-06-14 18:20:27 UTC
Assigning to Richard, who works on the welcome screen
Comment 3 Richard Gregor 2002-07-04 10:35:23 UTC
I'm sorry. welcome.jar shouldn't be in docs subdir.I'll remove it.
Comment 4 Richard Gregor 2002-07-04 11:21:25 UTC
HTML pages' references are in Bundle.properties now. So when you need
to localize welcome you should create own localized HTML page and put
reference into your bundle_ja.properties.Reference properties are:
REF_Welcome_page
REF_Welcome_131_page
REF_Help_page.

Fixed.
Comment 5 Ken Frank 2002-07-04 15:56:04 UTC
I don't think it should be required to have or localize the 3 values
with the name of the localized file. The code should find
it based on locale like other nb modules that have html
files (non help) in their jars like template descriptor
html files.

In other words, if there is a given xx.html file in jar,
like the welcome.html, then in ja locale, code should use
the welcome_ja.html that resides at same location as welcome.html
but that is in the modules/locale./welcome_ja.jar.

And if the localized jar file not present, then code would
just use the html in welcome.jar.

Can you consider doing it this way and reopening issue if needed ?

ken.frank@sun.com
07/04/2002
Comment 6 Richard Gregor 2002-07-08 13:43:29 UTC
Done according to Ken's suggestion. But there should be images inside
modules/locale/welcome_ja.jar as well.
Comment 7 Jesse Glick 2002-12-23 16:35:27 UTC
Consistent use of the I18N keyword.
Comment 8 Ken Frank 2003-07-22 19:11:08 UTC
verified

ken.frank@sun.com