Closed Bug 1025633 Opened 9 years ago Closed 9 years ago

Word suggestion strings appear in the word suggestion space

Categories

(Firefox OS Graveyard :: Gaia::L10n, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:2.1+, b2g-v2.0 unaffected, b2g-v2.1 verified)

VERIFIED FIXED
2.0 S4 (20june)
blocking-b2g 2.1+
Tracking Status
b2g-v2.0 --- unaffected
b2g-v2.1 --- verified

People

(Reporter: gerard-majax, Assigned: timdream)

References

Details

(Keywords: regression, Whiteboard: [p=1])

Attachments

(5 files)

Since a couple of days, I noticed that on master build with multilocate, there is a « Suggestions de mots » string that appears, barely visible, in the word suggestion area of the keyboard.

This reproduces on my multilocale builds for Nexus S, not on my non-multilocale builds for Flame. I also have the bug reproduced on my Keon (multilocale builds from Geeksphone).

This also reproduces if I switch the locale (and the string is localized).

STR:
 0. Open Messages app
 1. Tap new message
 2. Tap in the input field

Expected:
 The word suggestion area is clean

Actual:
 The string "Suggestions de mots" is occupying space in the word suggestion area, hiding half of the suggested string in height. The resulting word suggestions are barely usable.
FYI, this string is only in the gaia-l10n repo:

> alex@portable-alex:~/codaz/B2G/gaia$ git grep 'Suggestions de mots'
> alex@portable-alex:~/codaz/B2G/gaia$ 
> alex@portable-alex:~/codaz/B2G/gaia/locales/fr$ git grep 'Suggestions de mots'
> apps/keyboard/keyboard.properties:wordSuggestions=Suggestions de mots

Of course, all repos are uptodate.
This has been modified by bug 1013207.
Depends on: 1013207
Flags: needinfo?(timdream)
So after checking the bug who introduced this, I noticed it modified the l10n:
> diff --git a/apps/keyboard/locales/keyboard.en-US.properties b/apps/keyboard/locales/keyboard.en-US.properties
> index f1937b6..3c579d2 100644
> --- a/apps/keyboard/locales/keyboard.en-US.properties
> +++ b/apps/keyboard/locales/keyboard.en-US.properties
> @@ -12,26 +12,26 @@ wordSuggestion=Word suggestion
>  # LOCALIZATION NOTE (wordSuggestions): The name of the section above the
>  # keyboard where the word suggestions appear. This is read out to screen reader
>  # users when they put a finger in that area.
> -wordSuggestions=Word suggestions
> +wordSuggestions.ariaLabel=Word suggestions
>  # LOCALIZATION NOTE (dismiss): The "x" button that closes the word suggestions.
> -dismiss=Dismiss
> +dismiss.ariaLabel=Dismiss

So, théo/delphine, seems you have work to do :)
Component: Gaia::Keyboard → Gaia::L10n
Flags: needinfo?(timdream)
Flags: needinfo?(tchevalier)
Flags: needinfo?(lebedel.delphine)
Ouch, I didn't realized I will introduce this kind of side effect.

Should I instead update the l10n IDs (e.g. dismiss -> dismiss2.ariaLebel)?
QA Wanted to check 2.0.
Keywords: qawanted
2.0 is not affected. So it's safe to update the string entity.

Gaia      0f254c92bc44d614ae56a855f18a895a7e4703ad
Gecko     https://hg.mozilla.org/releases/mozilla-aurora/rev/301e62e44f18
BuildID   20140616160201
Version   32.0a2
ro.build.version.incremental=eng.theo.20140613.174651
ro.build.date=vendredi 13 juin 2014, 17:47:02 (UTC-0700)
Flags: needinfo?(tchevalier)
Flags: needinfo?(lebedel.delphine)
Keywords: qawanted
(In reply to Tim Guan-tin Chien [:timdream] (MoCo-TPE) (please ni?) from comment #8)
> Ouch, I didn't realized I will introduce this kind of side effect.
> 
> Should I instead update the l10n IDs (e.g. dismiss -> dismiss2.ariaLebel)?

I don't think so. We just need to update translations and the effect will disappear. We will not push to production any locale that doesn't have the right strings.

Theo, am I right?
Flags: needinfo?(tchevalier)
(In reply to Zibi Braniecki [:gandalf] from comment #11)
> (In reply to Tim Guan-tin Chien [:timdream] (MoCo-TPE) (please ni?) from
> comment #8)
> > Ouch, I didn't realized I will introduce this kind of side effect.
> > 
> > Should I instead update the l10n IDs (e.g. dismiss -> dismiss2.ariaLebel)?
> 
> I don't think so. We just need to update translations and the effect will
> disappear. We will not push to production any locale that doesn't have the
> right strings.
> 
> Theo, am I right?

I'm not sure to understand the root cause of the issue. Is it happening because locales still have "dismiss=Dismiss" in their repo?
If yes, we can't remove it manually for all locales. Especially because we don't have any 2.1 repo yet.

If dismiss.ariaLebel becomes dismiss2.ariaLebel, I guess it should stop using translations from "dismiss"?
Flags: needinfo?(tchevalier)
(In reply to Théo Chevalier [:tchevalier] from comment #12)
> I'm not sure to understand the root cause of the issue. Is it happening
> because locales still have "dismiss=Dismiss" in their repo?
> If yes, we can't remove it manually for all locales. Especially because we
> don't have any 2.1 repo yet.

Yes, it seems to be the cause.

> If dismiss.ariaLebel becomes dismiss2.ariaLebel, I guess it should stop
> using translations from "dismiss"?

Well, yeah, but that seems like an unnecessary inflation of string ID changes. We are capable of catching this without having to fall back to inflating string ID versions.
(In reply to Zibi Braniecki [:gandalf] from comment #13)
> (In reply to Théo Chevalier [:tchevalier] from comment #12)
> > I'm not sure to understand the root cause of the issue. Is it happening
> > because locales still have "dismiss=Dismiss" in their repo?
> > If yes, we can't remove it manually for all locales. Especially because we
> > don't have any 2.1 repo yet.
> 
> Yes, it seems to be the cause.
> 
> > If dismiss.ariaLebel becomes dismiss2.ariaLebel, I guess it should stop
> > using translations from "dismiss"?
> 
> Well, yeah, but that seems like an unnecessary inflation of string ID
> changes. We are capable of catching this without having to fall back to
> inflating string ID versions.

oh, if you can tell the App to ignore this string it's way better, yes.
(In reply to Théo Chevalier [:tchevalier] from comment #14)
> oh, if you can tell the App to ignore this string it's way better, yes.

I can't. But we can make sure we transition all locales away from string's value to string's attribute `ariaLabel`, right?
(In reply to Zibi Braniecki [:gandalf] from comment #11)
> I don't think so. We just need to update translations and the effect will
> disappear. We will not push to production any locale that doesn't have the
> right strings.

That's not necessarily true. A build is green if it has all the needed strings, it doesn't count "extra strings" (obsolete). And most important, this create issues on testing while the locale is not yet complete (it's going to take a while before we branch for 2.0 on gaia-l10n).

I think the solution is just to assign a new data-l10n-id to the element.
oh, ok. Whatever you think is necessary. I was hoping to save us from having to update the string ID.
Blocks: 1013207
No longer depends on: 1013207
Zibi, never assume that localizations are correct, that's not going to work. All bugs in localizations are OK and need to be dealt with in the expected manner by the code that's calling in to them.
Assignee: nobody → timdream
Status: NEW → ASSIGNED
Whiteboard: p=1
Target Milestone: --- → 2.0 S4 (20june)
Comment on attachment 8442656 [details] [review]
mozilla-b2g:master PR#20728

Update the l10n IDs
Attachment #8442656 - Flags: review?(rlu)
Whiteboard: p=1 → [p=1]
Comment on attachment 8442656 [details] [review]
mozilla-b2g:master PR#20728

ok, r=me if this is what is needed to get this fixed.
Thanks.
Attachment #8442656 - Flags: review?(rlu) → review+
Comment on attachment 8442656 [details] [review]
mozilla-b2g:master PR#20728

Let me make sure if this is indeed the conclusion of the discussion above.
Attachment #8442656 - Flags: feedback?(gandalf)
Comment on attachment 8442656 [details] [review]
mozilla-b2g:master PR#20728

yeah. Until we can figure out how to make our toolchain smarter we need to inflate the ids.
Attachment #8442656 - Flags: feedback?(gandalf) → feedback+
master: https://github.com/mozilla-b2g/gaia/commit/99cfbe40f8f821a39ff50333e74dc922aa429626
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Switching the 2.1?->2.1+, on these fixed bugs as these are regression.

Nothing to land here, its just flag-cleanup of 2.1? list. Please Ni me if there is confusion/disagreement.
blocking-b2g: 2.1? → 2.1+
Hi Josh,
This issue has been verified successfully on Flame2.1
See video: verify_1025633.MP4

Flame2.1 build:
Gaia-Rev        8ae086c39011bc8842b2a19bb5267906fa22345a
Gecko-Rev       https://hg.mozilla.org/releases/mozilla-b2g34_v2_1/rev/ebbd5c65c3c1
Build-ID        20141124094013
Version         34.0
Device-Name     flame
FW-Release      4.4.2
FW-Incremental  eng.cltbld.20141124.130744
FW-Date         Mon Nov 24 13:07:55 EST 2014
Bootloader      L1TC00011880
From comment 26&27,so change the Status to "verified".
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.