Closed Bug 968998 Opened 10 years ago Closed 10 years ago

[B2G][l10n][All Locales]E.Me Smart Collection list is displayed in english.

Categories

(Firefox OS Graveyard :: Gaia::Everything.me, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(b2g-v1.3 affected, b2g-v1.4 verified)

VERIFIED FIXED
Tracking Status
b2g-v1.3 --- affected
b2g-v1.4 --- verified

People

(Reporter: rkuhlman, Unassigned)

References

Details

(Keywords: l12y, Whiteboard: LocRun1.3, [systemsfe], [priority], LocRun1.4)

Attachments

(1 file)

The user can create apps that automatically perform an E.Me search when tapped. When the user is creating one of these apps, they are presented with a list of suggested phrases to search for. These phrases all display in english when the device language is set to Bengali.

Repro Steps:
1) Updated Buri to BuildID: 20140203004001
2) Long press on the homepage.
3) Select 'Add Smart Collections'(স্মার্ট সংগ্রহ হিসেবে যোগ করুন).
4) Observe list of suggestions.

Actual:
All suggestions are displayed in english except for 'Custom...'(স্বনির্ধারিত...).

Expected:
All suggestions on list are displayed in Bengali.

Environmental Variables:
Device: Buri v1.3 Moz RIL
BuildID: 20140203004001
Gaia: f9a37c77efb4621a1f57e4695b497d18601fe134
Gecko: 3d9d920ca43b
Version: 28.0a2
Firmware Version: v1.2-device.cfg

Notes:

Repro frequency: 100%
See attached: screenshot
Component: bn-BD / Bengali → Gaia::Everything.me
Keywords: l12y
Product: Mozilla Localizations → Firefox OS
Summary: [B2G][l10n][Bengali]E.Me Smart Collection list is displayed in english. → [B2G][l10n][All Locales]E.Me Smart Collection list is displayed in english.
blocking-b2g: --- → 1.3?
Component: Gaia::Everything.me → Gaia::Homescreen
Keywords: late-l10n
This part is provided by ev.me
Component: Gaia::Homescreen → Gaia::Everything.me
Cristian

Please review
Flags: needinfo?(crdlc)
The issue:

https://github.com/mozilla-b2g/gaia/blob/master/apps/homescreen/everything.me/js/Brain.js#L1244

Evme.CollectionsSuggest.load({
          'shortcuts': suggestedShortcuts,
          'icons': icons,
          'locale': locale
        });

locale === data.response.locale === "en_WW"

https://github.com/mozilla-b2g/gaia/blob/master/apps/homescreen/everything.me/modules/CollectionsSuggest/CollectionsSuggest.js#L85

var doTranslate = data.locale !== WORLDWIDE_LOCALE;

It is false because the response says that the locale is "en_WW"

I changed the previous variable

doTranslate = true

and the suggestions were translated.

I don't know why this condition but if evme guys did that, I am pretty sure that there is a good reason. Please Amir, could you take a look?
Flags: needinfo?(crdlc) → needinfo?(amirn)
By design, the Collection suggestions list is displayed in English for languages not supported by E.me. 
See bugs 946724 and 938067 for more details.

Thanks.
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: needinfo?(amirn)
Resolution: --- → DUPLICATE
Amir,

   French is not supported?
French is supported.
Note that changing the device language is not enough. You will only get French suggestions if your location implies you are in France or if you add locale=fr to the querystring.
(In reply to Amir Nissim (Everything.me) from comment #4)
> By design, the Collection suggestions list is displayed in English for
> languages not supported by E.me. 
> See bugs 946724 and 938067 for more details.
> 
> Thanks.
> 
> *** This bug has been marked as a duplicate of bug 938067 ***

That's not going to work & isn't acceptable to be "by design." We have operators that require translations to ship products for any required locale. This is going to be blatantly embarrassing if we ship a full UI without a translation. So this needs to be fixed.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
(In reply to Amir Nissim (Everything.me) from comment #6)
> French is supported.
> Note that changing the device language is not enough. You will only get
> French suggestions if your location implies you are in France or if you add
> locale=fr to the querystring.

That's wrong behavior. The device language on the device is the primary driver to determine what locale text is displayed on the device. With additional cases, you put the phone in the awkward state of having mixed translations, which is poor UX. Also - It's not unreasonable for someone to decide to have their phone in a language that doesn't match the primary locale of the country, so forcing a particular language is fundamentally breaking that use case.

This needs to be fixed & will block certification.
1. About the Bangali language and the hardcoded translations not kicking in. 
E.me supports territories that FxOS has been officially launched in. The list of shortcuts/Collections is returned from E.me servers already translated and hardcoded translations take precedence. If the territory isn't supported, the list is returned in English and hardcoded translations are ignored in order to display a list uniform in it's language.
Bengal is not a supported territory, therefore the list is presented in English. This is by design and was concluded in Bug 938067.

2. Non matching location and locale result in English list. I'm looking into this.
(In reply to Ran Ben Aharon (Everything.me) from comment #10)
> 1. About the Bangali language and the hardcoded translations not kicking in. 
> E.me supports territories that FxOS has been officially launched in. The
> list of shortcuts/Collections is returned from E.me servers already
> translated and hardcoded translations take precedence. If the territory
> isn't supported, the list is returned in English and hardcoded translations
> are ignored in order to display a list uniform in it's language.
> Bengal is not a supported territory, therefore the list is presented in
> English. This is by design and was concluded in Bug 938067.

That doesn't make sense. Whether or not the territory is supported doesn't matter here - users shouldn't be forced into using English if the country doesn't have English as a primary language. That's going to appear broken to a user.

This use case will become especially problematic as we move to a community-driven strategy in the near future, as we'll have community testers who might test Firefox OS in a country that we have not launched in. As such, forcing English here is going to make community adaption in those countries much more of a pain.

However - given that target markets aren't affected here, I'll remove the blocking flag. I'm putting needinfo on product here, as I'd like product to weigh here on what they think the right behavior is.
blocking-b2g: 1.3? → ---
Flags: needinfo?(ffos-product)
Blocks: 949609
Blocks: 938417
Blocks: 934786
Blocks: 967191
Blocks: 967193
Blocks: 967195
Blocks: 967202
Blocks: 967205
Blocks: 967207
Blocks: 967615
Blocks: 967617
Pitching in a bit late here but I totally agree with Jason's comment.
Also, Bengali (bn-BD) is one of our oncoming target locales and I believe we should have this translated in that language as well
Ran, Jason makes solid points about the overall language needing to apply to all aspects of the device, the collections list included.  Do we have a good sense of how to fix this?
Flags: needinfo?(ran)
Whiteboard: LocRun1.3 → LocRun1.3,[systemsfe],[priority]
Flags: needinfo?(ffos-product)
Whiteboard: LocRun1.3,[systemsfe],[priority] → LocRun1.3, [systemsfe], [priority]
Keywords: late-l10n
I'm debating this with Peter Dolanjsky.
Flags: needinfo?(ran)
Whiteboard: LocRun1.3, [systemsfe], [priority] → LocRun1.3, [systemsfe], [priority], LocRun1.4
This still hasn't been corrected in 1.4?
Seems like we really need to be more consistent here. Any updates about this please?
Flags: needinfo?(ran)
This issue is server side and thus unreliant on FxOS versions.

I don't have a concrete update on this but a solution is in the works.
Flags: needinfo?(ran)
We are targeting start of next week (May 19th). Will keep you up to date.
Now, the Smart Collection list will always match the OS locale (this obviously is relevant for territories agreed upon with Mozilla)
Status: REOPENED → RESOLVED
Closed: 10 years ago10 years ago
Resolution: --- → FIXED
What would you like QA Wanted to do in here?
Flags: needinfo?(ran)
1.4 Environmental Variables:
Device: Buri 1.4 MOZ
BuildID: 20140521000202
Gaia: 93623f6435849cc9f54d9996e8e64828ac9091d1
Gecko: 12fe2b67a099
Version: 30.0
Firmware Version: v1.2-device.cfg

This issue has been fixed on the Buri 1.4 MOZ RIL
Status: RESOLVED → VERIFIED
I think Ran was asking for verification, which is something that was done above.
Flags: needinfo?(ran)
Keywords: qawanted
Basically, observe the language of the list items when the location doesn't "match" the OS language.

The original bug was opened for the following: Location:US, OS language:Bengali, in which the Smart Collection list was displayed in English. Now it's displayed in Bengali.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: