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 99487 - I18N: Regression: localized javadoc is not shown at code completion
Summary: I18N: Regression: localized javadoc is not shown at code completion
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords: I18N
: 99489 108444 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-03-30 06:01 UTC by Masaki Katakai
Modified: 2007-10-11 02:53 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Masaki Katakai 2007-03-30 06:01:24 UTC
I added localized JDK javadoc into Java platform, but it shows always English
Javadoc at code completion window. 

1. Start NB
2. Add "jdk-6-doc-ja.zip" to Javadoc on Java Platform Manager
   Japanese javadoc can be downloaded from
http://java.sun.com/javase/ja/6/download.html
3. Create a project and start typing for JDK APIs
    Javadoc window is invoked for code completion but it's always English

The same scenario works in 5.5, Japanese javadoc will be displayed.

I'm using M8.

  NetBeans IDE Dev (Build 200703280911)
  1.6.0_01; Java HotSpot(TM) Server VM 1.6.0_01-b06
  SunOS version 5.10 running on sparc
  ja_JP (nb); eucJP-open
Comment 1 Marian Mirilovic 2007-03-30 09:11:52 UTC
use I18N keyword, please
Comment 2 Jan Pokorsky 2007-03-30 12:24:43 UTC
reassigning to editor/completion for evaluation
Comment 3 Vitezslav Stejskal 2007-04-16 02:49:38 UTC
I am sorry for a stupid question, but are you sure that you added the japanese
.zip to the java platform that is used by the project, where you were invoking
the code completion from?
Comment 4 Masaki Katakai 2007-04-18 07:37:35 UTC
I'm trying on a J2SE project.

Yes, I understand the javadoc is configured properly.

Before I tested it, I have verified the Japanese javadoc
is available from Help -> Javadoc Preferences menu.
It means the project requires the Java platform and
IDE is picking up the localized javadoc.
Comment 5 Miloslav Metelka 2007-04-23 21:21:22 UTC
Reassigning to java/editor.
Comment 6 Masaki Katakai 2007-07-24 14:37:32 UTC
Javadoc window is also displaying contents only from src.zip (bug 99489)

There is no workaround, we can not use localized JDK javadoc.
Comment 7 Dusan Balek 2007-07-24 15:58:18 UTC
*** Issue 108444 has been marked as a duplicate of this issue. ***
Comment 8 Tomas Zezula 2007-09-20 14:24:27 UTC
Ok, I will fix it, but as it's much more slower to get the javadoc from the javadoc than from sources I will do this
only when the ide runs on the non english locale.

The following decisions will be made:
1) Is it english locale? => Yes - use sources
2) Has localized javadoc => No - use sources
3) Use javadoc
Comment 9 Petr Hrebejk 2007-09-20 14:37:03 UTC
*** Issue 99489 has been marked as a duplicate of this issue. ***
Comment 10 Tomas Zezula 2007-09-24 17:42:49 UTC
Fixed.
Checking in src/org/netbeans/api/java/source/ui/ElementJavadoc.java;
/cvs/java/sourceui/src/org/netbeans/api/java/source/ui/ElementJavadoc.java,v  <--  ElementJavadoc.java
new revision: 1.7; previous revision: 1.6
done
Comment 11 Ken Frank 2007-10-10 18:33:02 UTC
It looks ok for me now using nb6 and jdk6 ja javadoc.

Masaki, can you see if its ok for you ?

ken.frank@sun.com
Comment 12 Masaki Katakai 2007-10-11 02:53:41 UTC
Yes, it's now working for me too.

Marked as verified.

Thank you!!