Closed Bug 1065384 Opened 10 years ago Closed 10 years ago

[fte] tutorial string tutorial-vertical-scroll-v2-tiny has insufficient space in some locales

Categories

(Firefox OS Graveyard :: Gaia::First Time Experience, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(b2g-v2.1 verified, b2g-v2.2 verified)

VERIFIED FIXED
2.1 S5 (26sep)
Tracking Status
b2g-v2.1 --- verified
b2g-v2.2 --- verified

People

(Reporter: aryx, Assigned: sfoster)

References

Details

(Whiteboard: [systemsfe])

Attachments

(7 files, 3 obsolete files)

Attached image screenshot
Boot2Gecko 2.2.0.0-prerelease 20140909160207 on Flame

The first screen of the tutorial uses the string with the entity tutorial-vertical-scroll-v2-tiny and is "Swipe up and down to browse your apps and bookmarks. Tap and hold an icon to delete, move, or edit it."

Unfortunately, many locales have much longer translations for "swipe", "apps", "tap" etc., so the translation gets much longer and requires five lines of text in e.g. German (see attached screenshot). French dropped some of the text to fit in 4 lines.

Please provide space for a fifth line of text
Jacqueline, Eric: we looked at these kind of issues when the tutorial videos first landed. We may be able to make a rule that just gives 5 lines of text to this screen, but the video will shrink accordingly. Unfortunately the strings are locked so I don't think we have any other options here?
Flags: needinfo?(jsavory)
Flags: needinfo?(epang)
Whiteboard: [systemsfe]
(In reply to Sam Foster [:sfoster] from comment #1)
> Jacqueline, Eric: we looked at these kind of issues when the tutorial videos
> first landed. We may be able to make a rule that just gives 5 lines of text
> to this screen, but the video will shrink accordingly. Unfortunately the
> strings are locked so I don't think we have any other options here?

Hey Sam, would we be able to increase the space only when needed?  5 lines of space is alot, and I think will be to much on other locales (such as English).  If the video shrinks accordingly will it end up blurry?
Flags: needinfo?(epang)
> Hey Sam, would we be able to increase the space only when needed?  5 lines
> of space is alot, and I think will be to much on other locales (such as
> English).  If the video shrinks accordingly will it end up blurry?

I'll have to try it and see. Yes we can measure text and adjust the space as needed. I had just hoped we could avoid that. I'm not too worried about degrading the quality of the video, its more an issue of layout and possibly performance.
Assignee: nobody → sfoster
I agree with Eric that reducing the video size for all locales would look strange. I think adjusting it when necessary is the best solution for now. 

Sorry for the long string, I tried to add the bookmark information using as few words as possible.
Flags: needinfo?(jsavory)
Attached image ftu-l10n-many-lines.png (obsolete) —
Attachment #8489719 - Flags: ui-review?(epang)
Attached image ftu-l10n-average-lines.png (obsolete) —
Attachment #8489720 - Flags: ui-review?(epang)
Attached image ftu-l10n-single-line.png (obsolete) —
These screenshots show the extreme cases. Note that in practice we never have less than 2 lines, and never more than 5. But the patch I'll attach should be flexible enough to ensure the text is visible and legible regardless. 

I've got a minimum height on there to stop the video from jumping around too much as you step through. Beyond 3-4 lines it will start to squish down the video to fit.
Attachment #8489723 - Flags: ui-review?(epang)
This patch changes the layout from using a fixed-height for the text that captions the tutorial videos, to using flexbox to scale the video area as necessary. I've run it through a few times on the flame, with various string lengths and its performed well. I don't currently have a smaller screen device to test it on though. 
As the text is currently clipped/incomplete in some languages, I assume we're looking at 2.1 uplift for this if possible.
Attachment #8489726 - Flags: review?(fernando.campo)
Target Milestone: --- → 2.1 S5 (26sep)
(In reply to Sam Foster [:sfoster] from comment #7)
> Created attachment 8489723 [details]
> ftu-l10n-single-line.png
> 
> These screenshots show the extreme cases. Note that in practice we never
> have less than 2 lines, and never more than 5. But the patch I'll attach
> should be flexible enough to ensure the text is visible and legible
> regardless. 
> 
> I've got a minimum height on there to stop the video from jumping around too
> much as you step through. Beyond 3-4 lines it will start to squish down the
> video to fit.

Hey Sam, looking good, but before I review these I just have one quick question.  Can we vertically center the text above the video in the space between the status bar and video?
Flags: needinfo?(sfoster)
Comment on attachment 8489726 [details] [review]
PR to use flexbox in tutorial caption/video layout

slowly using flex in all ftu :D thanks Sam

also, I'd say +1 to comment 9 about vertical centering, it'd look better when empty space is big.
Attachment #8489726 - Flags: review?(fernando.campo) → review+
> Hey Sam, looking good, but before I review these I just have one quick
> question.  Can we vertically center the text above the video in the space
> between the status bar and video?

Of course, in fact I thought I had done that but I see the screenshot says otherwise.
Flags: needinfo?(sfoster)
Updated with vertically-centered text
Attachment #8489720 - Attachment is obsolete: true
Attachment #8489720 - Flags: ui-review?(epang)
Attachment #8490118 - Flags: ui-review?(epang)
Attached image ftu-l10n-many-lines.png
Attachment #8490120 - Flags: ui-review?(epang)
All screenshots for ui-review updated with fixed vertical centering
Attachment #8490121 - Flags: ui-review?(epang)
Attachment #8489723 - Attachment is obsolete: true
Attachment #8489723 - Flags: ui-review?(epang)
Attachment #8489719 - Attachment is obsolete: true
Attachment #8489719 - Flags: ui-review?(epang)
PR updated with fixed vertical-centering on tutorial step text.
Comment on attachment 8490118 [details]
ftu-l10n-average-lines.png

Looks good, thanks Sam!
Attachment #8490118 - Flags: ui-review?(epang) → ui-review+
Comment on attachment 8490120 [details]
ftu-l10n-many-lines.png

Looks good, thanks!
Attachment #8490120 - Flags: ui-review?(epang) → ui-review+
Comment on attachment 8490121 [details]
ftu-l10n-single-line.png

Thanks again R+
Attachment #8490121 - Flags: ui-review?(epang) → ui-review+
Comment on attachment 8489726 [details] [review]
PR to use flexbox in tutorial caption/video layout

[Approval Request Comment]
[Bug caused by] (feature/regressing bug #): New, longer strings in bug 1054352
[User impact] if declined: Some captions for the tutorial videos will be incomplete in some locales 
[Testing completed]: Clean Gaia-Try, manual testing with existing strings and short and long extremes
[Risk to taking this patch] (and alternatives if risky): Low risk, FTU app CSS changes only
[String changes made]: None
Attachment #8489726 - Flags: approval-gaia-v2.1?
Resolving as this is fixed in master.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Attachment #8489726 - Flags: approval-gaia-v2.1? → approval-gaia-v2.1+
This issue has been successfully verified on Flame 2.1, 2.2
See attachment:germen.3gp,french.3gp
Reproducing rate: 0/5

Flame 2.1 new build:
Gaia-Rev        ccb49abe412c978a4045f0c75abff534372716c4
Gecko-Rev       https://hg.mozilla.org/releases/mozilla-b2g34_v2_1/rev/18fb67530b22
Build-ID        20141202001201
Version         34.0
Flame 2.2 version:
Gaia-Rev        725685831f5336cf007e36d9a812aad689604695
Gecko-Rev       https://hg.mozilla.org/mozilla-central/rev/2c9781c3e9b5
Build-ID        20141202040207
Version         37.0a1
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: