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 75196 - I18N: error messages from setErrorMsg() are not localized
Summary: I18N: error messages from setErrorMsg() are not localized
Status: RESOLVED FIXED
Alias: None
Product: contrib
Classification: Unclassified
Component: JMX (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jean-francois Denise
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2006-04-19 02:13 UTC by Masaki Katakai
Modified: 2006-04-21 08:22 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 2006-04-19 02:13:18 UTC
Most messages from setErrorMsg() are hardcoded and not from resource bundle.
These error messages are being displayed on footer of Wizard.

./jmx/configwizard/ConfigPanel.java:                setErrorMsg( "The file " +
// NOI18N
./jmx/configwizard/ConfigPanel.java:                setErrorMsg( "The file " +
// NOI18N
./jmx/mbeanwizard/MBeanJUnitTestPanel.java:                setErrorMsg( 
"Specified class does not exist.");// NOI18N
./jmx/mbeanwizard/MBeanJUnitTestPanel.java:                setErrorMsg( 
"Specified class is an Interface.");// NOI18N
./jmx/mbeanwizard/MBeanJUnitTestPanel.java:                setErrorMsg( 
"Specified class is abstract.");// NOI18N
./jmx/mbeanwizard/MBeanJUnitTestPanel.java:                    setErrorMsg( 
"Specified class is not a MBean class.");// NOI18N
./jmx/mbeanwizard/MBeanJUnitTestPanel.java:               
setErrorMsg(bundle.getString("LBL_ClassWithNoConstructor")); // NOI18N
./jmx/mbeanwizard/MBeanOperationPanel.java:        private void
setErrorMsg(String message) {
./jmx/mbeanwizard/MBeanOptionsPanel.java:                setErrorMsg(  "The file
" + // NOI18N
./jmx/mbeanwizard/MBeanOptionsPanel.java:                   
setErrorMsg("Specify a class to wrap.");// NOI18N
./jmx/mbeanwizard/MBeanOptionsPanel.java:                    setErrorMsg(  "The
specified class does not exist.");// NOI18N
./jmx/mbeanwizard/MBeanOptionsPanel.java:                    setErrorMsg(  "The
specified class is an Interface.");// NOI18N
./jmx/mbeanwizard/MBeanOptionsPanel.java:                    setErrorMsg(  "The
specified class is abstract.");// NOI18N
./jmx/mbeanwizard/StandardMBeanPanel.java:                setErrorMsg(  "The
file " + // NOI18N
./jmx/mbeanwizard/StandardMBeanPanel.java:                     setErrorMsg( 
"The specified class does not exist.");// NOI18N
./jmx/mbeanwizard/StandardMBeanPanel.java:                     setErrorMsg( 
"Specify an Existing class.");// NOI18N
Comment 1 Jean-francois Denise 2006-04-21 08:22:02 UTC
OK.
Need to externalize these strings in bundle.