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 120388 - I18N - gestures/exception reporting windows not appear or appear ok in other locale
Summary: I18N - gestures/exception reporting windows not appear or appear ok in other ...
Status: VERIFIED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: Exceptions Reporter (show other bugs)
Version: 6.x
Hardware: Sun All
: P3 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2007-10-29 17:53 UTC by Ken Frank
Modified: 2007-11-09 04:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
image (12.93 KB, image/gif)
2007-10-29 17:54 UTC, Ken Frank
Details
zip (3.65 KB, application/octet-stream)
2007-10-29 17:55 UTC, Ken Frank
Details
Patch identifying places that should be localized (8.20 KB, patch)
2007-11-01 06:36 UTC, Jaroslav Tulach
Details | Diff
In my opinion everything works (90.07 KB, image/png)
2007-11-05 15:51 UTC, Jaroslav Tulach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ken Frank 2007-10-29 17:53:11 UTC
This is same as 115295 but I was requested to file a separate issue
since other one was long.

for some other details, see that issue.

1. am following the guidelines and requirements provided by dev team
on how to pseudo localize the bundle files and html files from testwww.

2. running in ja locale using pseudo lcoalized nb including those of uihandler
jars and the 2 values in bundle file point to my own web location where the pseudo
localized html files from testwww are.

3. when exception window appears, and choose to report the exception, 2 things are seen:

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

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

4. running in en locale, the problems do not happen.

5. for 3a or 3b, I don't see any exceptions in log file or console or in uigestures about it.

6. am attaching again a zip of the html files that were pseudo localized.


7. Are you emulating this in your environment - using pseudo localized uigestures jar
and your own pseudo html files on your own server ?  If not then I don't see
how you can see the situation.
Comment 1 Ken Frank 2007-10-29 17:54:22 UTC
Created attachment 51926 [details]
image
Comment 2 Ken Frank 2007-10-29 17:55:00 UTC
Created attachment 51927 [details]
zip
Comment 3 Ken Frank 2007-10-30 15:09:26 UTC
am putting in reportexception subcat since that is where the problem
is seen in product and it needs to be seen on dashboard and will be
in this subcat.

ken.frank@sun.com
Comment 4 Jaroslav Tulach 2007-10-30 20:18:21 UTC
I think I reproduced the problem on my sunray. The buttons look really horribly.
Comment 5 Jaroslav Tulach 2007-10-30 20:21:39 UTC
Q1: Why is the encoding in one HTML page euc-jp and in other x-euc-jp? 
Q2: Could not you just use UTF-8?


Comment 6 Jaroslav Tulach 2007-10-30 20:39:32 UTC
I wrote a test to read the index_ja.html page and I can confirm that each button contains following sequence of 
characters:

65533
65533
65533
1957
65533
65533

Q3: Is that correct or wrong? I expect it to be correct. But then I do not understand what can be wrong. If the 
characters are mbyte in memory, they should be mbyte on display (with the right fonts) as well.
Comment 7 Ken Frank 2007-10-30 21:45:13 UTC
I'll reply to the questions later after research;just want to remind there
that there are 2 parts to this - perhaps should be 2 sep issues ?

1. the buttons dont look ok.

2. the window that allows user to type in uname/pwd/details does not come up.

ken.frank@sun.com
Comment 8 Ken Frank 2007-10-31 00:36:34 UTC
as to characters in index_ja.html, I dont know about number values, just some
usual random mbyte characters used.

a. I changed the mbyte in error_ja.html to another character and problem the same

b. I changed encoding to utf-8 and to iso-2022-jp for error_ja.html and problem the same

c. making the euc-jp to x-euc-jp in error_ja.html did not help; I think these are alternate
versions of same charset notation.

c. utf-8 can't be used since there are 3 ja locales on solaris (pck emulates sjis on windows)
but the mbyte is translated while user in one of those locales and each of those locales
have a different encoding, but it was found that iso-2022-jp was ok for each, same for zh
there is one encoding that works.

so in template descriptions of file new or new project, the html shown there uses
that charset; I was using euc-jp since just on solaris machine where it is the 
encoding of the solaris ja locale I am in.


2. the error.html msg is confusing in any case since it refers to the actual system
of direct bug loading is out of order and to use the Report to Issuezilla button

but there is no Report to Issuezilla button, just Send, View, Cancel.

I have gotten the files from the place I was told to -
testwww/www/uigestures

are those files still the correct ones ?


or is one of the problems is that I am getting the error_ja.html window and not
the index_ja.html window; I had thought that error.html comes up first and then
index does that allows to enter the info and username.

ken.frank@sun.com
Comment 9 Jaroslav Tulach 2007-10-31 14:38:47 UTC
Re. the problem with non-functioning "Send" button - you have also modified alt="reportDialog" which should not be 
modified. Just leave it as it is and the button will work.

As that is imho the major problem, and is now fixed, I am lowering the priority. But I promise to try to run into the 
other issue on real Japanese solaris and solve it, now.
Comment 10 Jaroslav Tulach 2007-10-31 17:46:52 UTC
#120388: Improved regular expression to understand the values quoted with " instead of '

IDE:-------------------------------------------------
IDE: [31.10.07 17:46] Committing started
Checking in test/unit/src/org/netbeans/modules/uihandler/Bundle_te_ST.properties;
/shared/data/ccvs/repository/logger/uihandler/test/unit/src/org/netbeans/modules/uihandler/Bundle_te_ST.properties,v  
<--  Bundle_te_ST.properties
new revision: 1.7; previous revision: 1.6
done
Checking in test/unit/src/org/netbeans/modules/uihandler/EucJPReadPageTest.java;
/shared/data/ccvs/repository/logger/uihandler/test/unit/src/org/netbeans/modules/uihandler/EucJPReadPageTest.java,v  
<--  EucJPReadPageTest.java
new revision: 1.2; previous revision: 1.1
done
Checking in src/org/netbeans/modules/uihandler/Installer.java;
/shared/data/ccvs/repository/logger/uihandler/src/org/netbeans/modules/uihandler/Installer.java,v  <--  Installer.java
new revision: 1.99; previous revision: 1.98
done
IDE: [31.10.07 17:46] Committing finished
I
Comment 11 Ken Frank 2007-10-31 17:59:29 UTC
yes, fixing the line in error_ja.html means the window appears.

But in that window (which is now being seen for the first time due to my error
in error_ja.html), the button labels View Data, Send and Cancel are not taken
from the translated index_ja.html. 

(and the word Send is not even in the index_ja.html, but is in error_ja.html.)

all the other parts of the report problem window are from bundle file
msgs except the Report Problem in the header of it.

I see "Report Problem" as title of error_ja.html - is it supposed to come from that
or from module - if from module perhaps its not in a bundle file ?

summary

1. buttons not from html file 

2. Report Problem on window header/title not from html or bundle file.

ken.frank@sun.com


Comment 12 Ken Frank 2007-10-31 18:03:29 UTC
just to make sure

- the confirmation page from statistics.nb.org will be in english - it is not to be translated ?

- the mutlibyte send in any exception report does not need to show ok in the report,
since its really part of iz, and thats not required for iz either.

I am just asking here, so I can be clear to translation team.

ken.frank@sun.com
Comment 13 Jaroslav Tulach 2007-10-31 18:08:45 UTC
Yet another fix:

#120388: Parsing the encoding in case insensitive mode


IDE:-------------------------------------------------
IDE: [31.10.07 18:08] Committing "UI Gestures Collector Infrastructure" started
Checking in test/unit/src/org/netbeans/modules/uihandler/error_ja.html;
/shared/data/ccvs/repository/logger/uihandler/test/unit/src/org/netbeans/modules/uihandler/error_ja.html,v  <--  
error_ja.html
new revision: 1.2; previous revision: 1.1
done
Checking in test/unit/src/org/netbeans/modules/uihandler/EucJPReadPageTest.java;
/shared/data/ccvs/repository/logger/uihandler/test/unit/src/org/netbeans/modules/uihandler/EucJPReadPageTest.java,v  
<--  EucJPReadPageTest.java
new revision: 1.3; previous revision: 1.2
done
Checking in src/org/netbeans/modules/uihandler/Installer.java;
/shared/data/ccvs/repository/logger/uihandler/src/org/netbeans/modules/uihandler/Installer.java,v  <--  Installer.java
new revision: 1.101; previous revision: 1.100
done
IDE: [31.10.07 18:08] Committing "UI Gestures Collector Infrastructure" finished
IDE
Comment 14 Jaroslav Tulach 2007-11-01 06:25:27 UTC
Yet another change to fix the characters in the browser:

IDE: [1.11.07 6:22] Committing started
Checking in test/unit/src/org/netbeans/modules/uihandler/EucJPReadPageTest.java;
/shared/data/ccvs/repository/logger/uihandler/test/unit/src/org/netbeans/modules/uihandler/EucJPReadPageTest.java,v  
<--  EucJPReadPageTest.java
new revision: 1.4; previous revision: 1.3
done
Checking in manifest.mf;
/shared/data/ccvs/repository/logger/uihandler/manifest.mf,v  <--  manifest.mf
new revision: 1.29; previous revision: 1.28
done
Checking in src/org/netbeans/modules/uihandler/Installer.java;
/shared/data/ccvs/repository/logger/uihandler/src/org/netbeans/modules/uihandler/Installer.java,v  <--  Installer.java
new revision: 1.102; previous revision: 1.101
done
IDE: [1.11.07 6:22] Committing finished
Comment 15 Jaroslav Tulach 2007-11-01 06:35:26 UTC
I can see, that we are again mixing many issues into one. So in continuing the trend, here is the howto. Take the 
attached diff, apply it to files in testwww/www/uigestures, rename all of them to have _ja suffix. Localize just the 
text that contains the text HERE, do not change encoding, do not modify anything else. When done, commit these files 
to testwww/www/uigestures.
Comment 16 Jaroslav Tulach 2007-11-01 06:36:30 UTC
Created attachment 52212 [details]
Patch identifying places that should be localized
Comment 17 Ken Frank 2007-11-01 17:40:23 UTC
I will follow these steps and send back to you since not do commits to nb cvs and dont want to take
chance of messing it up now by starting it at this late date.

about the diff and the HERE words - several comments/questions

1. the webdocs l10n kit just has index and error.html files in it, as per discussion
about that in another issue in logger about exception reporter and i18n -- but in diff are all of the
testwww/www/uigestures/*.html files with word HERE

--> please clarify - is it true that all others need to be translated ?
(I have translated all in my pseudo localization only because I forgot about this point that just 2 files needed)


2.  what about the encoding tag; as mentioned here and/or other mails, for ja and zh there are 3 sub locales,
each with a different default encoding; but the translation work will be done when translator is in
one of those locales, not utf-8 one, so thats why they use an encoding that will work for all those locales.
should it still be left as utf-8 ?

ken.frank@sun.com
Comment 18 Jaroslav Tulach 2007-11-01 21:16:12 UTC
Re. 1: translate all four files please.
Re. 2: if translators use NetBeans IDE to edit the xyz_ja.html page, then they can safely leave the encoding to utf-8. 
UTF-8 is standard that is going to work and prevent accidental issues that might appear with other encodings.
Comment 19 Ken Frank 2007-11-05 03:25:38 UTC
buttons still don't show as from locale; this time they show as english
vs previous time the multibyte showed not properly.

I have modified the html files as mentioned here and in diff examples,
but still the button labels dont show from the modified and lcoalized html files.

I am still using the html files at my own server and uihandler bundle still modified
to point to those files, and all is taken from those files except the button labels.

the translated html files are being putback to testwww/www/uigestures tomorrow and
we can see then but until then
I need to reopen so this will get back on dashboard.

ken.frank@sun.com
Comment 20 Jaroslav Tulach 2007-11-05 15:51:00 UTC
Created attachment 52528 [details]
In my opinion everything works
Comment 21 Jaroslav Tulach 2007-11-05 15:56:31 UTC
I just tried latest version on Japanese Solaris. I reused the files you attached as
http://www.netbeans.org/nonav/issues/showattachment.cgi/51927/rep.zip
and imho the buttons as well as HTML browser content (shown only when displaying index_ja.html, not error_ja.html) is
ok. Closing once again.
Comment 22 Ken Frank 2007-11-05 16:54:36 UTC
agree (finally) - now that the pseudo translated pages are on
nb site, the button shows mbyte ok and from the translated html page.

I will confirm on windows that its ok and then verify.

ken.frank@sun.com
Comment 23 Ken Frank 2007-11-05 19:38:45 UTC
looks ok on windows also. verifying.

ken.frank@sun.com
Comment 24 Ken Frank 2007-11-09 04:41:06 UTC
does web docs l10n kit have all 5 uigestures html files in it ?
If not, the ones not there need to be added to the kit via l10n.list.
according to later comments in this issue, all 5 files are needed
instead of just the 2 mentioned many weeks ago.

ken.frank@sun.com