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 125946 - I18N - JSP editor has a warning message not from pseudo localized bundle file
Summary: I18N - JSP editor has a warning message not from pseudo localized bundle file
Status: RESOLVED DUPLICATE of bug 126403
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP Parser (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomas Mysik
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2008-01-24 17:59 UTC by kaa
Modified: 2008-02-29 07:23 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
image (54.12 KB, image/jpeg)
2008-01-24 18:00 UTC, kaa
Details
another one message (68.10 KB, image/jpeg)
2008-01-28 18:00 UTC, kaa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kaa 2008-01-24 17:59:59 UTC
Product Version: NetBeans IDE Dev (Build 200801201200)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05
System: Windows XP version 5.1 running on x86; MS932; ja_JP (nb)
Project encoding: UTF-8

Steps:

1. Create WebApp
2. Open Jsp page in the editor
3. Place somewhere in the code the second pageEncoding tag

Warning message appears in red. It is not from pseudo localized bundle file.
I'm running in the Japan locale, using a pseudo localized Netbeans with fontsize 16.
Comment 1 kaa 2008-01-24 18:00:52 UTC
Created attachment 55520 [details]
image
Comment 2 Marek Fukala 2008-01-24 18:37:23 UTC
The non-localized error message comes from JSP parser. I am not sure if we even try to localize the parser errors.
Comment 3 voltik 2008-01-28 12:16:25 UTC
JSP parser is prepared for localization: class org.apache.jasper.compiler.Localizer implements localization support, it
uses standard method java.util.ResourceBundle.getBundle(String) to get bundle
org.apache.jasper.resources.messages.properties.

The simples way how to localize JSP parser would be to insert new localizing bundles into glassfish-jspparser.jar file.

Other possibility is to transform somehow English messages into some other localization in
org.netbeans.modules.web.jspparser_ext.WebAppParseSupport class (method private static JspParserAPI.ErrorDescriptor
constructJakartaErrorDescriptor can be modified), but this would not be an easy task.
Comment 4 kaa 2008-01-28 18:00:23 UTC
Created attachment 55665 [details]
another one message
Comment 5 Petr Jiricka 2008-02-05 17:04:58 UTC
When you run the application in a localized version of GlassFish, does the server show a localized error message, or is
it still English? Thanks.
Comment 6 kaa 2008-02-06 16:30:06 UTC
This message was shown without any deployment/running the app.
See also issue 126403
Comment 7 Petr Pisl 2008-02-06 18:21:22 UTC
This is a duplicate of 126403. At least the same fix should fix it - add ML Glassfish jsp parser.
Comment 8 Petr Jiricka 2008-02-07 13:51:35 UTC
Downgrading to P3 - same justification as for 126403.
Comment 9 Tomas Mysik 2008-02-25 18:05:21 UTC
I'll try to look at it.
Comment 10 Tomas Mysik 2008-02-29 07:23:07 UTC
> This is a duplicate of 126403. At least the same fix should fix it - add ML Glassfish jsp parser.

Yes, that's true. So closing as duplicate.


*** This issue has been marked as a duplicate of 126403 ***