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 12257 - i18n - html files in startup window can't be i18ned.
Summary: i18n - html files in startup window can't be i18ned.
Status: CLOSED INVALID
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: Sun Solaris
: P3 blocker (vote)
Assignee: issues@platform
URL: http://www.netbeans.org/i18n/
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2001-05-18 09:40 UTC by akiko.mochizuki
Modified: 2008-12-22 16:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Psuedo translated core.jar (58.74 KB, application/octet-stream)
2001-07-20 20:35 UTC, akiko.mochizuki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description akiko.mochizuki 2001-05-18 09:40:51 UTC
3 html files at org/netbeans/docs/startup bundled in core.jar file can't be
i18ned. 

Environment
-----------
FFJ, EE V.3.0 (Build 010512)
Solaris 8, u2
Locale ja_JP.eucJP
JDK 1.3.0

How to reproduce
----------------
1. Rename the html files:
     info-NewTemplateAction.html   --> info-NewTemplateAction_ja.html 
     info-ProxySettingsAction.html --> info-ProxySettingsAction_ja.html
     info.html                     --> info_ja.html
2. Psuedo translate the renamed files. See the attachment, which are 
   included a multi-byte character (a multi-byte bracket "{"). 
3. Create core_ja.jar from core.jar. core_ja.jar is contained the 3 html
   files above with psuedo translated Bundle_ja.properties files and 
   tip??_ja.html files at org/netbeans/docs/tips. 
4. Put core_ja.jar to <IDE_ROOT>/lib/locale directory. 
5. Start IDE and check startup window.

tip??_ja.html files showed in the lower pane of startup window can be i18ned. 
In other word, a multi-byte character inputed in tip??_ja.html files can 
be found. However I can't see it in 3 html files at the upper pane of starup
window. I guess that IDE doesn't refer psuedo localized html files or IDE 
actually refer other html files included in other module's jar files.
Comment 1 akiko.mochizuki 2001-05-18 10:00:10 UTC
Created attachment 1386 [details]
Psuedo translated core.jar
Comment 2 Jesse Glick 2001-05-18 16:42:16 UTC
Works for me (3.2 release): I put your core_ja.jar in lib/locale/ and started it
with -locale ja:JP (after inserting more obvious comments like "JAPANESE" into
e.g. info-NewTemplateAction_ja.html) and I saw them.

If you are having problems with getting the 16-bit characters to display
correctly, maybe you need a character encoding in an HTML <META> tag.
Comment 3 Jesse Glick 2001-05-21 11:13:16 UTC
Switching to INVALID...
Comment 4 Jesse Glick 2001-05-21 11:16:13 UTC
Now I see the problem (and why I could not reproduce with NetBeans)--this is an
error on the part of the translators. In an FFJ build, there are FFJ-branded
variants of some of these HTML files, but not others. Currently branding takes
priority over locale when there is not a branded localized version of the
resource. Thus e.g. info_f4j.html is being used in preference to info_ja.html.
Refer to the URL above, info_ja.html represents Japanese translations of a
NetBeans tip, whereas a translated Forte tip would be e.g. info_f4j_ja.html and
would live in lib/locale/core_f4j_ja.jar.
Comment 5 akiko.mochizuki 2001-05-22 08:29:09 UTC
I verified that the 2 html files are included in
<FFJ_HOME>/lib/locale/core_f4j.jar. 
But the rest of 1 file is not match with the view of the startup window. 

I can verified that the correct info_f4j.html and
info-NewTemplateAction_f4j.html 
are included in core_f4j.jar and they can be displayed in the startup window if 
they are translated to info_f4j_ja.html and info-NewTemplateAction_f4j_ja.html 
and packed in <FFJ_HOME>/lib/locale/core_f4j_ja.jar.

But info-UpdateAction_f4j.html in core_f4j.jar can't be displayed in the startup 
window. 
Comment 6 Jesse Glick 2001-05-22 13:46:34 UTC
There is in info-UpdateAction.html in core.jar, it is in autoupdate.jar I guess,
so info-UpdateAction_f4j.html belongs in modules/locale/autoupdate_f4j.jar.
Comment 7 Jesse Glick 2002-12-23 16:36:19 UTC
Consistent use of the I18N keyword.
Comment 8 Quality Engineering 2003-07-01 16:51:24 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.