Closed Bug 352054 Opened 19 years ago Closed 5 years ago

Browse button direction should always match its default text

Categories

(Core :: Internationalization: Localization, defect)

1.8 Branch
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: nir123, Unassigned)

References

Details

(Keywords: intl, rtl, testcase)

Attachments

(1 file)

311 bytes, text/html
Details
"Browse..." button (of <input type="file">) has netural characters ("...") so the position of the periods depends on the inherited direction. see the upcoming testcase.
Attached file testcase
Keywords: testcase
IMO translations should to fix the problem in the branch. Pike, do you accept patch?
Unlikely, and surely not before I've seen it do something useful on the trunk.
The right way to get it fixed is to use the documents language for the button, and it's direction and alignment. It has been discussed on bug 347515. But for the branch, seems the simplest way to fix the problem is to force put LRM/RLM after the "..." in all translations (and in en-US as well). Of course, it's not a complete solution, as you will give English "Browse..." on a Persian site yet, but at least, you will see "Browse...", not "...Browse".
Component: Layout: Form Controls → Localization
Keywords: intl
Target Milestone: --- → mozilla1.8.1
Version: Trunk → 1.8 Branch
(In reply to comment #4) > The right way to get it fixed is to use the documents language for the button, > and it's direction and alignment. It has been discussed on bug 347515. In mixed content, I'm not convinced.. > But for the branch, seems the simplest way to fix the problem is to force put > LRM/RLM after the "..." in all translations (and in en-US as well). Of course, > it's not a complete solution, as you will give English "Browse..." on a Persian > site yet, but at least, you will see "Browse...", not "...Browse". > Not gonna fix that one for Firefox 2. To take changes as large as this in string freeze a day before RC1 lock-down, this had to be a major regression, this is merely not pretty.
Target Milestone: mozilla1.8.1 → ---
Keywords: rtl
QA Contact: layout.form-controls → localization
What's the status of this? I know there's currently some file that specifically localizes the ellipsis. Could that be (or is it) used for this?
I don't think this has something to do with the ellipis, that entity is more ... vs &hellip; vs the middle-aligned ones. I think the issue has something to do with the text direction of the document vs the widget.
We don't really have a good setup for localizing that sort of thing. :( We could hack something in, I guess... Would it be better than using LRM/RLM?
We had some progress on bug 668964, so it might be good idea to make this bug a dupe of bug 668964. Because we don't have a fix to this issue (but have a patch ready thanks to Ehsan!), we have landed in the meantime "browse…[RLM]" string in Hebrew (and I hope that other RTL locales have similar workarounds as well). This is ugly hack and I hope that one day we could remove it.
I think we would want to morph this bug to cover what Behnam mentioned in comment 4. Boris, do you agree?
I'm not quite sure what comment 4 is proposing in terms of direction styling... Is the proposal to base it on the computed lang of the button with some sort of lang-to-direction mapping?
We should ideally get the text for the Browse button from the lang of the node, and then use dir=auto to render the text, I think.

Feel free to reopen and move if this is still actionable/valid.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: