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 234754

Summary: I18N: error messages for setting proxy
Product: platform Reporter: Masaki Katakai <masaki>
Component: ProxyAssignee: Libor Fischmeistr <lfischmeistr>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Masaki Katakai 2013-08-22 05:02:58 UTC
Thank you very much for the fixes of bug 234167.

It seems that error messages can not be localized.

core.ui/src/org/netbeans/core/ui/options/general/GeneralOptionsModel.java

   message = "Port is not number!";
   panel.updateTestConnectionStatus(status, message);

In this case, "Port is now number!" is hardcoded.
Please fix it.

Also this code shows exception to UI as it is,

        } catch (IOException ex) {
            LOGGER.log(Level.INFO, "Cannot connect via http protocol.", ex); //NOI18N
            message = ex.getLocalizedMessage();
        }

        panel.updateTestConnectionStatus(status, message);

Unfortunately exception messages are not localized usually.

It's not serious, I think. However, if possible, please try to
change the codes so that localized messages will appear on UI.
Comment 1 Libor Fischmeistr 2013-08-22 07:16:31 UTC
Fix: http://hg.netbeans.org/core-main/rev/0c6b148465b7

Thanks for your report. I've fixed it a little bit different. Now the message should never be shown, because the Test connection button should be disabled when port is not an integer value - another message informing about it is shown.

(In reply to Masaki Katakai from comment #0)
> Unfortunately exception messages are not localized usually.

Lead me from error please, but I think it's better, when messages written to log are not localized. If logging messages are localized, then it's very hard to read log message for programmer.