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)
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.
Comment 2•19 years ago
|
||
IMO translations should to fix the problem in the branch.
Pike, do you accept patch?
Comment 3•19 years ago
|
||
Unlikely, and surely not before I've seen it do something useful on the trunk.
Comment 4•19 years ago
|
||
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".
Blocks: Persian-Fx2.0
Component: Layout: Form Controls → Localization
Keywords: intl
Target Milestone: --- → mozilla1.8.1
Version: Trunk → 1.8 Branch
Comment 5•19 years ago
|
||
(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 → ---
Updated•17 years ago
|
QA Contact: layout.form-controls → localization
Comment 6•14 years ago
|
||
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?
Comment 7•14 years ago
|
||
I don't think this has something to do with the ellipis, that entity is more ... vs … vs the middle-aligned ones.
I think the issue has something to do with the text direction of the document vs the widget.
Comment 8•14 years ago
|
||
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?
Comment 9•14 years ago
|
||
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.
Comment 10•14 years ago
|
||
I think we would want to morph this bug to cover what Behnam mentioned in comment 4. Boris, do you agree?
Comment 11•14 years ago
|
||
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?
Comment 12•14 years ago
|
||
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.
Comment 13•5 years ago
|
||
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.
Description
•