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 72011 - I18N: error messages for invalid context path are always English
Summary: I18N: error messages for invalid context path are always English
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: Sun All
: P3 blocker (vote)
Assignee: Radko Najman
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2006-01-30 14:06 UTC by Masaki Katakai
Modified: 2006-08-23 13:32 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-01-30 14:06:05 UTC
web/project/src/org/netbeans/modules/web/project/ui/customizer/CustomizerRun.java

contextPathValidation() always returns English errors.

                message = "Context path should not contain \"//\"";
                message = "Context path should not end with \"/\"";

See the following codes, it seems that resouce bundle is defined,
however, it returns English finally. So UI is still English even in ml build.

            if (!contextPath.startsWith("/")) {
                message = NbBundle.getMessage (CustomizerRun.class,
"MSG_INVALID_CP_DOES_NOT_START_WITH_SLASH");
            } else if (contextPath.indexOf("//") >= 0) {
                message = NbBundle.getMessage (CustomizerRun.class,
"MSG_INVALID_CP_CONTAINS_DOUBLE_SLASH");
                message = "Context path should not contain \"//\"";
            } else if (contextPath.endsWith("/")) {
                message = NbBundle.getMessage (CustomizerRun.class,
"MSG_INVALID_CP_ENDS_WITH_SLASH");
                message = "Context path should not end with \"/\"";
            }
Comment 1 Radko Najman 2006-06-06 12:52:11 UTC
Fixed.

Checking in CustomizerRun.java;
/cvs/web/project/src/org/netbeans/modules/web/project/ui/customizer/CustomizerRun.java,v
 <--  CustomizerRun.java
new revision: 1.34.32.1.2.1; previous revision: 1.34.32.1
done
Comment 2 Pavel Rehak 2006-08-23 13:32:20 UTC
Verified.