Closed
Bug 160623
Opened 23 years ago
Closed 23 years ago
venkman 's help cannt display Chinese after localization.
Categories
(Other Applications Graveyard :: Venkman JS Debugger, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: nadwsh, Assigned: rginda)
References
Details
Attachments
(5 files, 1 obsolete file)
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; zh-CN; rv:1.1b) Gecko/20020731
BuildID: 2002073118
I am a mozilla Simplified Chinese translator,
in Chinese localization build of mozilla,when call the x-jsd:help
,the help displayed in the mozilla navigator window,but the localized
string did not displayed corrrectly,and the layout was broken!
I found that the problem was caused by the venkman.properties file,
in this file ,localized string are presented like
:\u6D4B\u8BD5\u53C2\u6570\u5206 (unicode)
but in the other dtd files, localized string are like
<!ENTITY venkmanCmd.label "JavaScript µ÷ÊÔÆ÷">.
Maybe venkman cannt handle unicode corroctly or some bug else?
Reproducible: Always
Steps to Reproduce:
1.install Simplified Chinese lang pack for 1.1beta
2.open javascript debugger
3.visit x-jsd:help
Actual Results: unknown symbols
Expected Results: localized Chinese symbols
Reporter | ||
Comment 1•23 years ago
|
||
Reporter | ||
Comment 2•23 years ago
|
||
Reporter | ||
Comment 3•23 years ago
|
||
This also happens on mozilla 1.1beta
Assignee | ||
Comment 4•23 years ago
|
||
Can you get this to happen in a small file, say x-jsd:help?search=float, then do
a File->Save Page As..., and attach the results here.
I have a feeling this is due to the fact that venkman munges certain text, like
<this> and |this|.
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Reporter | ||
Comment 5•23 years ago
|
||
extract the zip file and there is the html file.
Assignee | ||
Comment 6•23 years ago
|
||
Venkman searches out patterns like <this>, |this|, and *this*, inorder to
translate them to "<this>", "<tt>this</tt>", and "<b>this</b>" for HTML
output. When encodings use <, >, or | characters for other reasons, things get
understandably confused.
This patch attempts to fix the problem by searching for the special characters
ONLY if they follow (or proceed) a low-byte ascii character.
I'm about to post this as 0.9.30 to <http://www.hacksrus.com/~ginda/venkman/>.
Assignee | ||
Updated•23 years ago
|
Attachment #93693 -
Attachment is obsolete: true
Assignee | ||
Comment 7•23 years ago
|
||
Comment on attachment 93693 [details] [diff] [review]
proposed patch
This isn't going to work, I'm going to have to look into this a bit more :(
Attachment #93693 -
Flags: needs-work+
This is same on Japanese localization.
Now, I have temporary workaround, converting localized strings to NCR
in function svc_help in the venkman-jsdurl.js.
Here is modified venkman-jsdurl.js for venkman 0.9.24 comes with Mozilla 1.1 beta.
http://bugzilla.mozilla.gr.jp/showattachment.cgi?attach_id=1009
(You can reach where modified by finding strings "chado")
I hope this makes any little help, although I don't know if it works in Chinese.
Reporter | ||
Comment 9•23 years ago
|
||
I have tested this file in my mozilla 1.1beta,
Yes, it really works.
Assignee | ||
Comment 10•23 years ago
|
||
That's a pretty neat idea, but I'd prefer to use mozilla's charset encoders if
possible. I just posted version 0.9.33 to
<http://www.hacksrus.com/~ginda/venkman/>, which adds "msg.report.charset" to
the venkman.properties file. If you install this version and add
"msg.report.charset = utf-8" to your localized venkman.properties file,
everything *should* work.
Venkman will encode the unicode strings from venkman.properties into the
selected character set before writing generating the help text.
Please try this and let me know if it works, I'd like to fix this bug for
mozilla1.1 :)
Reporter | ||
Comment 11•23 years ago
|
||
tested,it works ,but still some small problem.
Reporter | ||
Comment 12•23 years ago
|
||
the screen shot of the wrong displayed strings
Reporter | ||
Comment 13•23 years ago
|
||
sample html file saved from x-jsd:help
Comment 14•23 years ago
|
||
Using venkman 0.9.33, ui-lavel fields in x-jsd:help seems to have problem,
even before localizing (means in en-US). Special charcters looks escaped.
I think this line, in the function svc_help in the venkman-jsdurl.js, is
causing shaohua's *small* problem:
> "\\$ui-label": escape(command.labelstr, MSG_REPORT_CHARSET),
should may be :
> "\\$ui-label": fromUnicode(command.labelstr, MSG_REPORT_CHARSET),
Assignee | ||
Comment 15•23 years ago
|
||
chado: yes, exactly the problem. I'll fix it before I check anything in.
Comment 16•23 years ago
|
||
I've tried revision vnk0.9.34 with Japanese localization.
Things are now looking good. We're happy to see quick fixing.
I hope this fix get going into Mozilla 1.1 final release.
Assignee | ||
Comment 17•23 years ago
|
||
Already checked in :)
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Updated•21 years ago
|
Product: Core → Other Applications
Updated•7 years ago
|
Product: Other Applications → Other Applications Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•