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.
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.
Created attachment 51926 [details] image
Created attachment 51927 [details] zip
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
I think I reproduced the problem on my sunray. The buttons look really horribly.
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?
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.
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
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
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.
#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
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
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
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
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
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.
Created attachment 52212 [details] Patch identifying places that should be localized
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
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.
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
Created attachment 52528 [details] In my opinion everything works
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.
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
looks ok on windows also. verifying. ken.frank@sun.com
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