Closed
Bug 1172768
Opened 9 years ago
Closed 9 years ago
Tip for import contact(s) for loop is not correctly shown
Categories
(Hello (Loop) :: Client, defect, P2)
Hello (Loop)
Client
Tracking
(firefox41 verified)
Tracking | Status | |
---|---|---|
firefox41 | --- | verified |
People
(Reporter: leichixian, Assigned: standard8)
Details
Attachments
(1 file)
1.68 KB,
patch
|
mikedeboer
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:41.0) Gecko/20100101 Firefox/41.0 Build ID: 20150608030201 Steps to reproduce: 1. Click loop button 2. Click import form google and wait for import Actual results: The tip "{{total}} contact was successfully imported.;{{total}} contacts were successfully imported." Here total is the number, which in my case is zero. Expected results: Should only show "0 contact was successfully imported." without ";0 contacts were successfully imported."
Updated•9 years ago
|
Severity: normal → minor
Component: Untriaged → Client
Product: Firefox → Loop
Assignee | ||
Comment 1•9 years ago
|
||
Simple falsey value bug. I knew we'd fixed some of this before, but we obviously didn't handle/test the num=0 case.
Attachment #8617192 -
Flags: review?(mdeboer)
Reporter | ||
Comment 2•9 years ago
|
||
And do you mind improve import function to sync? In order to report this bug I tested with a contact "test",but now I can't remove it...
Comment 3•9 years ago
|
||
Comment on attachment 8617192 [details] [diff] [review] Loop's desktop plural form handling doesn't handle zeros very well. Review of attachment 8617192 [details] [diff] [review]: ----------------------------------------------------------------- ::: browser/components/loop/content/libs/l10n.js @@ +38,5 @@ > > // translate a string > function translateString(key, args, fallback) { > + var num; > + if (args) { Alternative: `if (args && ("num" in args)) {`
Attachment #8617192 -
Flags: review?(mdeboer) → review+
Updated•9 years ago
|
Assignee: nobody → standard8
Status: UNCONFIRMED → ASSIGNED
Iteration: --- → 41.3 - Jun 29
Points: --- → 1
Ever confirmed: true
Flags: qe-verify+
Flags: firefox-backlog+
Updated•9 years ago
|
Priority: -- → P2
https://hg.mozilla.org/mozilla-central/rev/04d1294656a1
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox41:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
Comment 6•9 years ago
|
||
Reproduced the initial issue using old Nightly from 2015-06-09, verified that the issue is fixed using Firefox 41 beta 3 on Windows 7 64-bit, Windows 10 32-bit and Mac OS X 10.10.4. Was unable to verify this on Ubuntu because of bug 1106854.
You need to log in
before you can comment on or make changes to this bug.
Description
•