Closed Bug 190305 Opened 23 years ago Closed 22 years ago

XML prettyprint message can't be localized

Categories

(Core :: XML, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: kairo, Assigned: vberon)

References

()

Details

(Keywords: l12y)

Attachments

(1 file, 1 obsolete file)

When we turn on xml pretty printing user_pref("layout.xml.prettyprint", true); and show a xml file without a assigned stylesheet we get this message in the browser window: This XML file does not appear to have any style information associated with it. The document tree is shown below. This message is currently not localizable, though it should be. The URL field points to the place where this is hardcoded currently (LXR page).
No longer blocks: 189855
Prettyprint bugs to Jonas. Please try to take care of this soon. htmlparser/src has examples on how I did it for XML error messages.
Assignee: heikki → bugmail
Flags: blocking1.3b?
not gonna hold the release for this.
Flags: blocking1.3b? → blocking1.3b-
Blocks: 189855
This patch allows a XML prettyprint message to be localized. Requesting review from sicking.
Comment on attachment 127194 [details] [diff] [review] Patch to allow XML prettyprint to be localized >+ - The Initial Developer of the Original Code is >+ - Netscape Communications Corporation. >+ - Portions created by the Initial Developer are Copyright (C) 2002 >+ - the Initial Developer. All Rights Reserved. >+ - >+ - Contributor(s): Vincent Béron <vberon@hermes.usherb.ca> Um.. the initial developer of this particular file is Vincent Beron, no? And please encode the non-ASCII char as UTF-8, not as ISO-8859-1. Also, please use the request tracker to request sr; I realize that the directions on mozilla.org may not have been updated to reflect this fact....
Attachment #127194 - Flags: superreview+
Update to attachment #127194 [details] [diff] [review] integrating the changes requested by bzbarsky.
Attachment #127194 - Attachment is obsolete: true
Comment on attachment 127241 [details] [diff] [review] Patch to allow XML prettyprint to be localized (updated) <...> >+<!ENTITY xml.nostylesheet "This XML file does not appear to have any style information associated with it. The document tree is shown below. Modification."> <...> remove " Modification.". with that, r=axel@pike.org, requesting sr from bz. I was intending to fix this, no idea that it was just forgotten. Blame sicking.
Attachment #127241 - Flags: superreview?(bzbarsky)
Attachment #127241 - Flags: review+
Comment on attachment 127241 [details] [diff] [review] Patch to allow XML prettyprint to be localized (updated) >@@ -36,6 +36,8 @@ > - > - ***** END LICENSE BLOCK ***** --> > >+<!DOCTYPE overlay SYSTEM "chrome://communicator/locale/xml/prettyprint.dtd"> >+ > <xsl:stylesheet version="1.0" This should say <!DOCTYPE xsl:stylesheet... I'll fix that before checking in.
Attachment #127241 - Flags: superreview?(bzbarsky) → superreview+
>remove " Modification.". with that, r=axel@pike.org, requesting sr from bz. That's my fault, results from making sure it did work.
QA Contact: rakeshmishra → ashishbhatt
*** Bug 210880 has been marked as a duplicate of this bug. ***
Jonas, I'm sorry for the typo which caused the bustage with my patch. I'll be more careful next time around (like actually building the thing). Also, your bigfoot address bounced (tried to go to j_sicking % hotmail), which was "550: mailbox unavailable".
reassigning to Vincent since he fixed the bug
Assignee: bugmail → vberon
...and marking fixed
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: