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 165388 - I18N : error message is displayed in English but Japanese in 6.5.
Summary: I18N : error message is displayed in English but Japanese in 6.5.
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2009-05-18 11:48 UTC by Masaki Katakai
Modified: 2009-05-28 14:34 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot on 6.5 - error messages are Japanese (179.00 KB, image/png)
2009-05-18 11:50 UTC, Masaki Katakai
Details
screenshot on 6.7 - 2nd error message is English on editor and task list. On output window(javac output) is Japanese. (195.94 KB, image/png)
2009-05-18 11:51 UTC, Masaki Katakai
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Masaki Katakai 2009-05-18 11:48:51 UTC
Product Version: NetBeans Platform Dev (Build 200905180201)
Java: 1.6.0_13; Java HotSpot(TM) Client VM 11.3-b02
System: SunOS version 5.11 running on x86; UTF-8; ja_JP (nb)

Compilation error is displayed in English but it should be Japanese and
it's working fine on 6.5.1.

Try to copy the following into NetBeans editor. There are 2 errors
that "cannot find symbol". Editor and task list shows error for the
1st one in Japanese. However, it displayed English for the 2nd one.

public class Main {
    public static void main(String[] args) {
        NoClass obj1 = new NoClass(); // シンボルを見つけられません。

        NoMethod obj2 = new NoMethod();
        obj2.hello(); // cannot find symbol, "シンボルを見つけられません。" should be displayed
    }
    
    static class NoMethod {
    }
}

I understand these error message come from JDK. Actually it
displays Japanese when I compile it by javac.

I'll attach 2 screenshots later - trunk and 6.5.1. These are
running on the same machine and same JDK. 6.5.1 is OK,
both errors are displayed in Japanese on editor, task list and
output.

On trunk, editor and task list are English -
"cannot find symbol" is displayed. On output window, it's the
result by javac, it displays in Japanese.
Comment 1 Masaki Katakai 2009-05-18 11:50:07 UTC
Created attachment 82302 [details]
screenshot on 6.5 - error messages are Japanese
Comment 2 Masaki Katakai 2009-05-18 11:51:45 UTC
Created attachment 82303 [details]
screenshot on 6.7 - 2nd error message is English on editor and task list. On output window(javac output)  is Japanese.
Comment 3 Jan Lahoda 2009-05-19 06:47:22 UTC
Most likely, there is no code error. This is rather a missing localization. NetBeans uses its own copy of a javac,
currently a javac from JDK7 is used. There were major changes to error reporting in JDK7. To my knowledge, these changes
has not yet been propagated to the Japanese bundle. In this particular case, the error is likely
"compiler.err.cant.resolve.location.args", but this key is missing in compiler_ja.properties, and so the english version
is used (note that "method" and "class" are translated).
Comment 4 Dusan Balek 2009-05-21 07:41:05 UTC
Masaki,

will you be able to translate those for us?

The repository for NB javac clone is hg.netbeans.org/main/nb-javac. The relevant files are
src/share/classes/com/sun/tools/javac/resources/compiler*.properties

A full list of keys possibly requiring i18n are:

-compiler.err.cant.apply.symbol.1
-compiler.err.empty.bytecode.ident
-compiler.err.illegal.bytecode.ident.char
-compiler.err.illegal.self.ref
-compiler.warn.self.ref
-compiler.err.warnings.and.werror
-compiler.err.unclosed.bytecode.ident
-compiler.warn.raw.class.use
-compiler.misc.type.captureof
-compiler.misc.type.captureof.1
-compiler.misc.type.none
-compiler.misc.bad.source.file.header
-compiler.err.cant.resolve.args
-compiler.err.cant.resolve.args.params
-compiler.err.cant.resolve.location.args
-compiler.err.cant.resolve.location.args.params
-compiler.misc.no.args 
Comment 5 Masaki Katakai 2009-05-26 07:35:05 UTC
Delivered localized files ja and zh_CN to David.

David, could you check and integrate them?
Comment 6 Dusan Balek 2009-05-26 09:32:54 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/c16a77ae9cbc

changeset 31bf398ab548 in main/nb-javac
details: http://hg.netbeans.org/main/nb-javac?cmd=changeset;node=31bf398ab548
Comment 7 Masaki Katakai 2009-05-26 10:10:10 UTC
Thank you!

Once it's integrated to trunk, I'll check.
Comment 8 Masaki Katakai 2009-05-27 06:29:46 UTC
It looks working for me on build 200905270201.
Comment 9 Quality Engineering 2009-05-27 07:28:52 UTC
Integrated into 'main-golden', will be available in build *200905270201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/c16a77ae9cbc
User: Dusan Balek <dbalek@netbeans.org>
Log: Missing localization added (see issue #165388).
Comment 10 Jan Lahoda 2009-05-27 08:41:58 UTC
The change seems OK to me.
Comment 11 Vitezslav Stejskal 2009-05-27 15:23:48 UTC
Transplanted to release67 as http://hg.netbeans.org/release67/rev/c2a697f09110.
Comment 12 Jiri Prox 2009-05-28 10:54:50 UTC
verified in 6.7rc1
Comment 13 Masaki Katakai 2009-05-28 14:34:49 UTC
Thank you very much! I also verified it works on rc1 build.