L10n for role strings containing spaces on Android is broken
Categories
(Core :: Disability Access APIs, defect)
Tracking
()
People
(Reporter: Jamie, Assigned: eeejay)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 external file)
I haven't verified this, but I'm fairly sure that our localisation of role strings for Android a11y is broken and has been for several years, since bug 1479037.
- We use the unmodified Gecko role string as the key for l10n.
- However, some of our role strings contain spaces, but all of the l10n keys have spaces stripped.
- It looks like the old JS code did strip spaces, so this was probably just an oversight when the code was converted to native in bug 1479037 (and perpetuated in refactors thereafter).
I'm not sure whether it is required/ideal for string bundle keys to have no spaces or not. It does seem that no bundle contains spaces in its keys except for "click ancestor" in the accessible bundle, which we might need to look at. Regardless, we probably don't want to change the keys used because that would break all of our translations, so we should probably just make the C++ code strip spaces from the role before using it as a bundle key.
| Reporter | ||
Comment 1•2 years ago
|
||
We have nsTSubstring::StripWhitespace, so it's probably easiest to use that. The role string is currently a literal, so we'll need to wrap it in an nsAutoString or similar first.
| Reporter | ||
Updated•2 years ago
|
Comment 2•2 years ago
|
||
Set release status flags based on info from the regressing bug 1479037
:eeejay, since you are the author of the regressor, bug 1479037, could you take a look?
For more information, please visit BugBot documentation.
Updated•2 years ago
|
Comment 3•2 years ago
|
||
Set release status flags based on info from the regressing bug 1479037
| Assignee | ||
Comment 4•2 years ago
|
||
This has regressed for a very long time. No user impact here is minimal so I suggest it just ride the trains.
Updated•2 years ago
|
Updated•2 years ago
|
| Assignee | ||
Comment 5•2 months ago
|
||
Updated•2 months ago
|
Comment 7•2 months ago
|
||
| bugherder | ||
Updated•2 months ago
|
Updated•1 month ago
|
Description
•