Closed
Bug 1025556
Opened 12 years ago
Closed 8 years ago
Can't see the "View" button after downloading an attached picture when it's not localized
Categories
(Firefox OS Graveyard :: Gaia::E-Mail, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: theo, Unassigned)
Details
The "View" button after downloading an attached picture is not displayed anymore in any locale.
If you touch the empty area where the button is supposed to be, you can still activate the button, but you can't see it.
My guess is that it's the same issue as on bug 1025554, but since the text is not displayed, we can't see the button.
The affected string:
message-attachment-view.textContent=View
Not adding late-l10n keyword yet, but if we have to remove ".textContent" from the entity name, it will definitely be a late-l10n bug.
Comment 1•12 years ago
|
||
Same question of bug 1025554. This time the bug that changed the string on master is bug 1021946.
I see the button near the image on master.
| Reporter | ||
Comment 2•12 years ago
|
||
The string changed on master, indeed. However we should see the English string in other languages when there is no localization for this string.
blocking-b2g: 2.0? → ---
Summary: "View" button after downloading an attached picture is not displayed anymore → Can't see the "View" button after downloading an attached picture when it's not localized
Comment 4•12 years ago
|
||
foo.textContent is not supposed to work on master. We turned that off in bug 994290. See dependencies of that bug for work we did to stop using .textContent in Gaia.
Théo, are you seeing this bug on other branches than master as well? If it's only master, why would this be a late-l10n bug change?
Flags: needinfo?(stas)
Comment 5•12 years ago
|
||
Stas, the problem is that on nightly, if the string is missing from the locale (comment 2), nothing is displayed instead of showing the en-US label.
Comment 6•12 years ago
|
||
Flod: if another locale has
entity.attr = Foo
we will not treat it as if "entity" does not exist (and take the en-US fallback).
We must actually move the entity.attr = Foo -> entity = Foo in locales.
Comment 7•12 years ago
|
||
(In reply to Zibi Braniecki [:gandalf] from comment #6)
> we will not treat it as if "entity" does not exist (and take the en-US
> fallback).
I think that's a problem, and "entity" should be treated as a separate string from "entity.attribute" (that's also what compare-locales does).
Comment 8•12 years ago
|
||
Shouldn't "no value for entity" be a runtime error and fall back based on that?
Comment 9•12 years ago
|
||
(In reply to Axel Hecht [:Pike] from comment #8)
> Shouldn't "no value for entity" be a runtime error and fall back based on
> that?
No, there are a lot of entities that only have attributes, and it seems that gaia wants to be able to define a node with "hardcoded" value, and localizable attribute - say,
<button data-l10n-id="foo"><img/></button>
foo.ariaLabel = text
If you think we should forbid that, it'll be some work to transition away from using such code.
Comment 10•12 years ago
|
||
(In reply to Zibi Braniecki [:gandalf] from comment #9)
> (In reply to Axel Hecht [:Pike] from comment #8)
> > Shouldn't "no value for entity" be a runtime error and fall back based on
> > that?
>
> No, there are a lot of entities that only have attributes, and it seems that
> gaia wants to be able to define a node with "hardcoded" value, and
> localizable attribute - say,
>
> <button data-l10n-id="foo"><img/></button>
>
> foo.ariaLabel = text
>
> If you think we should forbid that, it'll be some work to transition away
> from using such code.
This will not work when we land bug 994357. The translation will need to explicitly sport the inner <img> element somewhere, or it will be removed from the localized node. I don't think that we should try to guess where the localizer intended to put the translated context (before, after or around the inner element).
Note that currently, setTextContent in l10n.js uses a simple heuristic of inserting translation in place of the first child text node, and this is something that we wanted to clean up.
Comment 11•12 years ago
|
||
A proper solution for master and the new l10n.js behavior for `textContent` strings should still be tracked in this bug, but note that bug 911412 will switch to use an icon for that button instead of text.
We still want the right localized text for accessibility reasons, but as far as display purposes, bug 911412 should help things to be more visually consistent.
Comment 12•8 years ago
|
||
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•