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 241095 - I18N: predefined configuration name can not be localized
Summary: I18N: predefined configuration name can not be localized
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2014-01-29 08:18 UTC by Masaki Katakai
Modified: 2014-02-04 03:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (38.61 KB, image/jpeg)
2014-01-29 08:18 UTC, Masaki Katakai
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Masaki Katakai 2014-01-29 08:18:54 UTC
Created attachment 144503 [details]
screenshot

I'm using 201401280001.

Please refer to the screenshot:

Default
Migrate to JDK 5
Migrate to JDK 7
Migrate to JDK 8

are not localized. Others are localized with [ ] character.

It seems that the configuration name is defined in

default.properties
jdk5.properties
jdk7.properties
jdk8.properties

So I prepared jdk8_ja.properties for example,
however it's still displaying English.

In layer.xml, it seems that it just picks up
English jdk8.properties and won't pick up
localized file e.g. _ja.properties.

./org/netbeans/modules/java/hints/resources/layer.xml:

            <folder name="ui">
                <file name="rule_config_default.properties" url="default.properties"/>
                <file name="rule_config_jdk5.properties" url="jdk5.properties"/>
                <file name="rule_config_jdk7.properties" url="jdk7.properties"/>
                <file name="rule_config_jdk8.properties" url="jdk8.properties"/>
            </folder>
Comment 1 Svata Dedic 2014-01-30 09:55:10 UTC
fixed in jet-main#5abfe2a96def
Comment 2 Quality Engineering 2014-02-04 03:05:48 UTC
Integrated into 'main-silver', will be available in build *201402040001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/5abfe2a96def
User: Svata Dedic <sdedic@netbeans.org>
Log: #241095: localization support