Closed Bug 1081084 Opened 10 years ago Closed 7 years ago

XML with no stylesheet message doesn't show well on RTL

Categories

(Mozilla Localizations :: he / Hebrew, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: tomer, Assigned: tomer)

References

()

Details

Attachments

(2 files)

Attached file Simple testcase
When requesting plain XML documents with no stylesheet, there is a message on the top indicating that there is no stylesheet attached. That message is aligned to the right side but is missing dir=rtl.
Attached image Screen Shot, Hebrew
The attached screenshot contains the actual result. Please note that the third word from the right should be XML. 

        זה אין מידע על סגנון המשויך אליו. עץ המסמך מוצג להלן XML נראה שלקובץ.
I don't think this is the right product (it's not a bug in the localization, is it?).
Not sure if Core::XML makes sense.
(In reply to Francesco Lodolo [:flod] from comment #2)
> I don't think this is the right product (it's not a bug in the localization,
> is it?).
> Not sure if Core::XML makes sense.

It isn't, you right. I am just placing it while investigating for what causing it in case it is not a problem on our locale. ☺
According to [XMLPrettyPrint.xsl, line 22][1], we already have the code for RTL in the right location, but it doesn't work well enough. I suspect that the [source code viewer][2] is messing with the message. 


[1]: http://mxr.mozilla.org/mozilla-central/source/dom/xml/resources/XMLPrettyPrint.xsl#22
[2]: http://mxr.mozilla.org/mozilla-central/source/layout/style/viewsource.css#11

I forgot to mention previously that this problem affects only RTL locales, and the testcase above would show the problem only on each of these locales. A workaround could be injecting RLE on [xml.nostylesheet][3] for the affected locales.

[3]: http://mxr.mozilla.org/mozilla-central/source/dom/locales/en-US/chrome/xml/prettyprint.dtd
Component: he / Hebrew → View Source
Product: Mozilla Localizations → Toolkit
https://pontoon.mozilla.org/he/firefox-aurora/all-resources/?search=This+XML+file+does+not+appear&string=69712
https://community.mozilla.org.il/viewtopic.php?f=16&t=12474#p61831

Could be that the at some point strings prefixed with RLE got garbled. I'm assigning this issue to myself while investigating.
Assignee: nobody → tomer.moz.bugs
Component: View Source → he / Hebrew
Product: Toolkit → Mozilla Localizations
Seems to be fixed.
Closing as RESOLVED FIXED.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: