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.
Summary: | I18N : error message is displayed in English but Japanese in 6.5. | ||
---|---|---|---|
Product: | java | Reporter: | Masaki Katakai <masaki> |
Component: | Compiler | Assignee: | Dusan Balek <dbalek> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | jf4jbug, mmirilovic |
Priority: | P1 | Keywords: | I18N |
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
screenshot on 6.5 - error messages are Japanese
screenshot on 6.7 - 2nd error message is English on editor and task list. On output window(javac output) is Japanese. |
Description
Masaki Katakai
2009-05-18 11:48:51 UTC
Created attachment 82302 [details]
screenshot on 6.5 - error messages are Japanese
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.
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). 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 Delivered localized files ja and zh_CN to David. David, could you check and integrate them? 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 Thank you! Once it's integrated to trunk, I'll check. It looks working for me on build 200905270201. 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). The change seems OK to me. Transplanted to release67 as http://hg.netbeans.org/release67/rev/c2a697f09110. verified in 6.7rc1 Thank you very much! I also verified it works on rc1 build. |