Closed Bug 1126247 Opened 9 years ago Closed 9 years ago

Hide the Get More Languages link until Marketplace supports langpacks

Categories

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

defect
Not set
normal

Tracking

(b2g-v2.2 fixed, b2g-master fixed)

RESOLVED FIXED
2.2 S5 (6feb)
Tracking Status
b2g-v2.2 --- fixed
b2g-master --- fixed

People

(Reporter: stas, Assigned: stas)

References

Details

Attachments

(1 file)

46 bytes, text/x-github-pull-request
arthurcc
: review+
Details | Review
Bug 1115798 added the Get More Languages link and bug 1124098 made it only show up on phones.

However, until bug 1105530 is fixed and an update to the Marketplace app is deployed, we're missing a major part of the functionality, and the link looks broken.

Let's hide it entirely for now and enable it only once bug 1105530 is deployed.
Attached file Pull request
With this patch, the link is hidden unless the l10n.more.showOnAllDevices setting is set to true.  Combined with build/config/custom-settings.json, this can be used to enable the link for testing.

Once the Marketplace supports langpacks, I'll file another bug to re-add the link to settings_phone.css.  This will override the setting and always make the link show up on phones.  The setting will continue to control the link on other device types.

Arthur, does this sound fine? 

Also, I'm not sure what the guidelines for naming settings are.  Any pointers?  I'm not very happy with "l10n.more.showOnAllDevices".
Assignee: nobody → stas
Status: NEW → ASSIGNED
Attachment #8556171 - Flags: review?(arthur.chen)
Comment on attachment 8556171 [details] [review]
Pull request

It makes less sense to introduce a new key as it is temporary and we still have to modify the code (adding the css back) to show the menu item.

How about simply remove the css in this patch?
Attachment #8556171 - Flags: review?(arthur.chen)
Sure, I can do that.  I was just wondering if there was a way to easily show the link for testing purposes.  The l10n and the marketplace team would benefit from this during the current dev cycle.

Can I comment the CSS out instead of removing it?
Flags: needinfo?(arthur.chen)
Got it. I was not aware that you need to tweak the menu item for development. To me the settings key is used to pref off the language pack feature, so maybe we can call it "l10n.language-pack.enabled"?
Flags: needinfo?(arthur.chen)
btw, please make sure this patch gets uplifted to v2.2.
Comment on attachment 8556171 [details] [review]
Pull request

Arthur, I changed my mind on this:  adding a new setting is an overkill.  As per the IRC chat, the updated pull request uses data-device-type="none" to hide the link temporarily.  I tested on my Flame and it works fine.  Thanks!
Attachment #8556171 - Flags: review?(arthur.chen)
Comment on attachment 8556171 [details] [review]
Pull request

r=me, thanks!
Attachment #8556171 - Flags: review?(arthur.chen) → review+
Master: https://github.com/mozilla-b2g/gaia/commit/5479269eb26c006124437c9973e4916aec69d17a
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Comment on attachment 8556171 [details] [review]
Pull request

[Approval Request Comment]

Requesting approval as per comment 5.

[Bug caused by] (feature/regressing bug #): langpacks

[User impact] if declined:  the Marketplace implementation of langpacks isn't ready yet and the Get More Languages link in Settings > Language looks broken because it doesn't do anything.

[Testing completed]:  on the device

[Risk to taking this patch] (and alternatives if risky):  low

[String changes made]: none
Attachment #8556171 - Flags: approval-gaia-v2.2?(bbajaj)
Attachment #8556171 - Flags: approval-gaia-v2.2?(bbajaj) → approval-gaia-v2.2+
Blocks: 1136025
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: