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 115295 - I18N - pseudo localized gestures/exception reporting not work
Summary: I18N - pseudo localized gestures/exception reporting not work
Status: VERIFIED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: Logger Server (show other bugs)
Version: 6.x
Hardware: PC All
: P2 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2007-09-12 00:11 UTC by Ken Frank
Modified: 2008-07-28 20:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
html filels (3.62 KB, application/octet-stream)
2007-09-12 00:12 UTC, Ken Frank
Details
file (4.62 KB, text/plain)
2007-10-20 22:00 UTC, Ken Frank
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ken Frank 2007-09-12 00:11:26 UTC
am following the instructions discussed with team as to how the gestures/exception reporting would be translated and
localized.

see attached zip for more.

am simulating real situation here but using own server since dont have access to netbeans.org

1. bundle file has
WELCOME_URL=http://devtools.sfbay/teams/DeveloperTools_I18N/gestures/index_ja.html
ERROR_URL=http://devtools.sfbay/teams/DeveloperTools_I18N/gestures/error_ja.html


2.zip of the pseudo localized html files are attached; I changed name of files to those with _ja suffix 
for references/urls to the other html files.


A. when exception appears and click on report it, the pseudo localized error window appears, but not the one
where you report the problem

it does appear when in en locale.

B. I dont see exceptions

C. please review the html files in attached to make sure all changes are ok and logical.
Comment 1 Ken Frank 2007-09-12 00:12:20 UTC
Created attachment 48611 [details]
html filels
Comment 2 Ken Frank 2007-09-13 03:29:15 UTC
with latest build, and closing some meta tags in html files, the report window appears now - 

however

a. the multibyte for the buttons, which comes from html files, shows as ???
even thought the meta charset tag is euc-jp and am on solaris in ja locale
in which euc-jp is the default encoding

b. the page at statistics.netbeans.org that tells upload of error report fininshed -
is in english - its not one of the ones in web docs l10n kit to be translated --

is this page meant to be in english ?

seems that if the report exceptions windows are translated that this page shd be also ?

c. should there be other messages in the ide or in browser from other of the html files that are to be
localzied besides the error and index.html (which i have seen already) ?

like the info.html or done.html ?

ken.frank@sun.com

ken.frank@sun.com
Comment 3 Ken Frank 2007-09-13 06:32:35 UTC
in the index.html file, for the 3 buttons seen at bottom of report window; their labels like
Cancel, what is the & for - is it supposed to be for a mnemoic assignment ?  

But even when having the english word be after the & as in en html file, the mbyte still not show ok;
see last comment about that.

ken.frank@sun.com
Comment 4 Jaroslav Tulach 2007-09-19 15:53:48 UTC
Re.b. the page after submitting a bug will be in English. It is like issuezilla pages on netbeans.org, they are also 
only in English. You can warn Japanese users about it in info_ja.html...

Re.& - it stays for & in bundles - you can delete it if you do not need mnemonic or do "Zrušit (&C)"
Comment 5 Ken Frank 2007-09-29 03:13:58 UTC
currently, besides problems below, clicking on send button, nothing happens.

ken.frank@sun.com
Comment 6 Ken Frank 2007-10-03 19:47:10 UTC
moving this to p2 since basically the main  and basic functionality will not work for users
who use localized release.

ken.frank@sun.com
Comment 7 Jaroslav Tulach 2007-10-09 05:55:14 UTC
This is the exception I get when parsing error_ja.html. The file must be in XHTML:

org.xml.sax.SAXParseException: The element type "META" must be terminated by the matching end-tag "</META>".
	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:264)
	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:292)
	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:98)
	at org.netbeans.modules.uihandler.Installer.parseButtons(Installer.java:470)
	at org.netbeans.modules.uihandler.Installer$Submit.doShow(Installer.java:770)
	at org.netbeans.modules.uihandler.Installer.doDisplaySummary(Installer.java:422)
	at org.netbeans.modules.uihandler.Installer.displaySummary(Installer.java:398)
	at org.netbeans.modules.uihandler.UIHandler.run(UIHandler.java:122)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
Comment 8 Jaroslav Tulach 2007-10-09 05:56:44 UTC
This is the diff I applied to the error_ja.html from the ZIP attachment
http://www.netbeans.org/nonav/issues/showattachment.cgi/48611/geshtml.zip
and I was able to see the report button as well as submit a report to http://statistics.netbeans.org

--- error_ja.orig       2007-10-09 06:49:44.000000000 +0200
+++ error_ja.html       2007-10-09 06:49:44.000000000 +0200
@@ -1,6 +1,6 @@
 <HTML>
 <HEAD>
-<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=x-euc-jp">
+<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=x-euc-jp">  </META>
     <title>���ޥ���Report Problem</title>
     <!--
     <link rel="stylesheet" type="text/css" href="http://www.netbeans.org/netbeans.css"/>
Comment 9 Ken Frank 2007-10-09 18:30:11 UTC
all is back to being ok exept for original situation a. below
a. the multibyte for the buttons, which comes from html files, shows as ???
even thought the meta charset tag is euc-jp and am on solaris in ja locale
in which euc-jp is the default encoding

changing meta charset to utf-8 did not help, and since there are 3 ja sub locales,
the encoding of the page needs to be in one that will work for all of those.

also, does the window asking about username come up each time one wantes to report
exception or just once per session or userdir, since when the buttons now have the ??? on labels,
I don't get that other window anymore.

ken.frank@sun.com

thus am reopening this 
Comment 10 Jaroslav Tulach 2007-10-12 16:25:02 UTC
I have written a test and it used to fail on Solaris, see issue 110760. Today I made it work. Seems to work better 
with Czech encoding. Please try that with pseudo-Japanese.

*** This issue has been marked as a duplicate of 110760 ***
Comment 11 Ken Frank 2007-10-20 21:59:07 UTC
Am reopening this since it does not seem as a duplicate of the other issue mentioned.

two things happening

1. the window from error_ja.html that tells you have found a bug 
the buttons on it do not show correct mbyte

2. pressing send, the other report exceptions window, that asks about username,etc does not appear

3. clicking on the exception window itself - review and report
problem - another exception window appears with

I don't know if this exception is related to the report exceptions
itself or is related to some multibyte in report exceptions
translated bundles or html files.

it is attached.
Comment 12 Ken Frank 2007-10-20 22:00:48 UTC
Created attachment 51366 [details]
file
Comment 13 Jaroslav Tulach 2007-10-24 09:27:22 UTC
Imho the latest exception was caused by issue 119653.
Comment 14 Ken Frank 2007-10-24 15:19:59 UTC
Would the fix to the other issue solve the problem mentioned below of:

1. the window from error_ja.html that tells you have found a bug -
the buttons on it do not show correct mbyte ?

ken.frank@sun.com
Comment 15 Ken Frank 2007-10-24 17:05:04 UTC
119875 looks like a new exception about parsing the xml; not sure if its
related to 119653 ?

ken.frank@sun.com
Comment 16 Ken Frank 2007-10-27 05:34:36 UTC
reopening - the issue mentioned below was stated as fixed 10/24 but this still
happens (both situations mentioned below) on 1026 build.

Also, this does not seem a duplicate of the issue mentioned below 110760.

ken.frank@sun.com
Comment 17 Jaroslav Tulach 2007-10-29 08:17:46 UTC
Ken, what issue is mentioned "bellow"? 

Can't you open new bug or clearly state what is the problem? I can understand you do not want to repeat yourself, but 
this issue has history longer than Harry Potter books, and I am no longer able to orient in it.

The last exception attached on Sat Oct 20 21:00:48, just cannot happen in current trunk (but it can in beta2):

Date: 2007/10/24 10:23:39
Author: jtulach
Branch: HEAD
Tag: (none)
Log:
#119653: Ignoring first 1000 of fatal errors - enough for simple unreadable characters, yet fails for fatal errors 
when the parse cannot more forward

Members:
        uihandlerlib/src/org/netbeans/lib/uihandler/LogRecords.java:1.32->1.33
        uihandlerlib/src/org/netbeans/lib/uihandler/MultiPartHandler.java:1.8->1.9
        uihandlerlib/src/org/netbeans/lib/uihandler/PasswdEncryption.java:1.2->1.3
        uihandlerlib/test/unit/src/org/netbeans/lib/uihandlerserver/LogRecordsTest.java:1.19->1.20
Comment 18 Ken Frank 2007-10-29 16:16:41 UTC
I can open new issue I guess, but let me ask a question - when you are running
using pseudo localzied bundle file and the pseudo html files at some web location
(whose location is noted at the 2 locations in the bundle file) --

does all of this work for you ?

ken.frank@sun.com
Comment 19 Ken Frank 2008-07-28 20:27:32 UTC
verified for 6.0.1 and 6.1; if any changes for 6.5 in all of this, please let
me know.

ken.frank@sun.com