Closed Bug 1142485 Opened 10 years ago Closed 10 years ago

[l10n] End of call message is not displayed entirely with long localizations

Categories

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

defect
Not set
normal

Tracking

(blocking-b2g:2.2+, b2g-v2.2 verified, b2g-master verified)

VERIFIED FIXED
2.2 S9 (3apr)
blocking-b2g 2.2+
Tracking Status
b2g-v2.2 --- verified
b2g-master --- verified

People

(Reporter: flod, Assigned: gsvelto)

References

Details

(Whiteboard: [planned-sprint c=1])

Attachments

(6 files)

Attached image Screenshots end of call
The screenshot is from Italian 2.2: I could shorten the string, but it really doesn't make sense considering the amount of available space in the callscreen. Other locales should have the same issue (e.g. pt-BR) http://transvision.mozfr.org/string/?entity=apps/communications/dialer/dialer.properties:callEnded&repo=gaia
ASking UX to look into this as per Description of this bug. Happens in multiple locales, can't shorten the string more. nominating for 2.2 also, since this looks pretty bad and is happening on a very often used screen.
blocking-b2g: --- → 2.2?
Flags: needinfo?(firefoxos-ux-bugzilla)
Attached image 2015-03-12-16-02-12.png
Also reproduces on today's latest master (see screenshot) Gaia-Rev 0c4e8b0b330757e261b031b7e7f326ef419c9808 Gecko-Rev https://hg.mozilla.org/mozilla-central/rev/5334d2bead3e Build-ID 20150312010235 Version 39.0a1 Device-Name flame FW-Release 4.4.2 FW-Incremental 39 FW-Date Thu Oct 16 18:19:14 CST 2014 Bootloader L1TC00011880
Flags: needinfo?(cawang)
triage: the truncation is ugly, let's block. ni to Carrie for providing UX input
blocking-b2g: 2.2? → 2.2+
Assignee: nobody → gsvelto
Target Milestone: --- → 2.2 S8 (20mar)
Hey Fang, Can we do some visual tweak to fix the problem? Thanks!
Flags: needinfo?(cawang) → needinfo?(fshih)
Clearing the flag for UX since Fang is on this already.
Flags: needinfo?(firefoxos-ux-bugzilla)
Ni? Dialer visual Carol, Thanks!
Flags: needinfo?(fshih) → needinfo?(chuang)
Attached image Bug 1142485_spec.jpg
Hi Doug, Could you help revising the UI? The attachment is the update UI spec for Call Ended screen. Thanks!:)
Flags: needinfo?(chuang) → needinfo?(drs)
I'd rather not do dynamic font resizing this late in a release as it is risky. Would you be opposed to making the font-size always 1.7rem and ellipsizing it if necessary?
Flags: needinfo?(drs) → needinfo?(chuang)
I agree with Doug here, we've got utilities for doing dynamic font resizing but it introduces more risk than it's worth IMHO.
Hi Doug, I didn't want to do dynamic font resizing either. Please shrink the font size to 2 rem as the new spec(not just in Italian) and ellipsizing it if necessary. Thanks!
Flags: needinfo?(chuang) → needinfo?(drs)
Ok, I think we're clear on what to do then. This assigned to Gabriele, so I'll leave it to him.
Flags: needinfo?(drs)
Whiteboard: [planned-sprint c=?]
Target Milestone: 2.2 S8 (20mar) → 2.2 S9 (3apr)
Whiteboard: [planned-sprint c=?] → [planned-sprint c=1]
Status: NEW → ASSIGNED
Comment on attachment 8582268 [details] [review] [gaia] gabrielesvelto:bug-1142485-resize-call-ended-message > mozilla-b2g:master A couple of notes on the change. I have tried the offending locales (Italian, Russian) and none of them needs the ellipsis. I haven't added the text-overflow: ellipsis to the directive because it won't work as we're using a span for that piece of text so to make it work we'll need to use a div but that changes the formatting significantly and it would be worth doing it in a follow up since it carries a high risk of regression. I also didn't shrink the space above the string to 2.6rem as in the attached design because it would alter the position of the string and duration compared to the one shown during the call. Shifting everything up to align to the new position puts the big duration timer very close to the top bar and I think that's not what we want. I'll attach a screenshot for the UI review.
Attachment #8582268 - Flags: ui-review?(chuang)
Attachment #8582268 - Flags: review?(drs)
Attached image Review screenshot
Comment on attachment 8582268 [details] [review] [gaia] gabrielesvelto:bug-1142485-resize-call-ended-message > mozilla-b2g:master Hey Gabriele, Thanks for letting me know these changes. The UI looks good.
Attachment #8582268 - Flags: ui-review?(chuang) → ui-review+
Comment on attachment 8582268 [details] [review] [gaia] gabrielesvelto:bug-1142485-resize-call-ended-message > mozilla-b2g:master As discussed, we're going to check if we can ellipsize this element.
Attachment #8582268 - Flags: review?(drs)
Comment on attachment 8582268 [details] [review] [gaia] gabrielesvelto:bug-1142485-resize-call-ended-message > mozilla-b2g:master Here's the result of my tinkering. display:inline-block + max-width did the trick but I had to explicitly add vertical-align: bottom to preserve the alignment of the text with the other elements. We probably want to change this into a flexbox in the future to cut down on the CSS. I accidentally noticed that the long-string issue was also present in the minimized statusbar view so I've addressed it there too. Note that I didn't need to change the display property there because the element is already part of a flexbox. I'll attach a screenshot with the result of both changes.
Attachment #8582268 - Flags: review?(drs)
Attached image Review screenshot 2
Additional screenshot for the review displaying the text ellipsis. Note that in the left picture I've deliberately used a longer string to make the ellipsis visible while the right picture is the current state of the app after my changes. Before the long string would be wrapped on two lines making it almost unreadable. My change is not optimal as only part of the string is visible but I wouldn't spend more time improving it since this is only visible for a 1-2s at the end of a call when the user is outside of the callscreen. A rare situation to say the least.
Comment on attachment 8582268 [details] [review] [gaia] gabrielesvelto:bug-1142485-resize-call-ended-message > mozilla-b2g:master Looks good. Thanks for the followup investigation.
Attachment #8582268 - Flags: review?(drs) → review+
Thanks for the review!
Keywords: checkin-needed
Keywords: checkin-needed
http://docs.taskcluster.net/tools/task-graph-inspector/#QldHp4RIQW6bj2a9oCHXTQ The pull request failed to pass integration tests. It could not be landed, please try again.
Gaia is closed, I'll wait until tomorrow before trying to reland.
Gaia is open again, let's try to land.
Keywords: checkin-needed
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Comment on attachment 8582268 [details] [review] [gaia] gabrielesvelto:bug-1142485-resize-call-ended-message > mozilla-b2g:master [Approval Request Comment] [Bug caused by] (feature/regressing bug #): Long strings in certain locales where not accounted for when the callscreen layout was first designed [User impact] if declined: In certain locales (Italian and Russian for example) the "call ended" string is so long that it causes the call duration and icon to be misplaced, significantly breaking the layout. A similar problem appears when the callscreen is minimized in the statusbar. [Testing completed]: Tested on a device and on the emulator with two different resolutions and two different locales [Risk to taking this patch] (and alternatives if risky): Minimal risks, this is only a small layout change with no logic involved. [String changes made]: None
Attachment #8582268 - Flags: approval-gaia-v2.2?(bbajaj)
Attachment #8582268 - Flags: approval-gaia-v2.2?(bbajaj) → approval-gaia-v2.2+
This issue is verified fixed on Flame Master and 2.2. Result: The font is reduced, and the string fits within the screen properly. I sampled 10 languages: Italian, Russian, Portuguese, Indonesian, Turkish, Swahili, and Arabic fits within the screen; Malay, Tamil, and Bosnian are truncated. Environmental Variables: Device: Flame 3.0 (KK, 319mb, full flash) Build ID: 20150417010203 Gaia: 3cd0a9facce26c2acc7be3755a17131a6358e33f Gecko: 51e3cb11a258 Gonk: b83fc73de7b64594cd74b33e498bf08332b5d87b Version: 40.0a1 (3.0) Firmware Version: v18D-1 User Agent: Mozilla/5.0 (Mobile; rv:40.0) Gecko/40.0 Firefox/40.0 Environmental Variables: Device: Flame 2.2 (KK, 319mb, full flash) Build ID: 20150417002504 Gaia: d50b8a3919a7b4d8d289f150d3b9bed704ebafa9 Gecko: 5ebf32030512 Gonk: ebad7da532429a6f5efadc00bf6ad8a41288a429 Version: 37.0 (2.2) Firmware Version: v18D-1 User Agent: Mozilla/5.0 (Mobile; rv:37.0) Gecko/37.0 Firefox/37.0
Status: RESOLVED → VERIFIED
Flags: needinfo?(ktucker)
QA Whiteboard: [QAnalyst-Triage?]
QA Whiteboard: [QAnalyst-Triage?] → [QAnalyst-Triage+]
Flags: needinfo?(ktucker)
See Also: → 1155901
Regarding the truncation issue mentioned in Comment 28, I filed a new bug 1155901.
Blocks: dialer-l10n
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: