Closed Bug 418524 Opened 16 years ago Closed 14 years ago

label of "Download activity summary in the status bar" with one download should be "1" not "One"

Categories

(Toolkit :: Downloads API, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.3a3

People

(Reporter: NicolasWeb, Assigned: om.brahmana)

References

Details

Attachments

(2 files, 4 obsolete files)

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; fr; rv:1.9b3) Gecko/2008020511 Firefox/3.0b3
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; fr; rv:1.9b3) Gecko/2008020511 Firefox/3.0b3

Using "1" instead of "One" is easier to catch by eyes.
It's more logical because after it's labelled "2", "3", ...

Reproducible: Always

Steps to Reproduce:
1.download one file
2.download 2 files
3.
Actual Results:  
"One Download ..."
"2 Downloads ..."

Expected Results:  
"1 Download ..."
"2 Downloads ..."

this is liked with the bug 402278. Maybe it should be temporarly reopen.
Attached image Actual behavior
We shouldn't reopen bug 402278 just to address this, but I'll confirm it as an enhancement request.

See https://bugzilla.mozilla.org/show_bug.cgi?id=402278#c19 and https://bugzilla.mozilla.org/show_bug.cgi?id=402278#c21.
Severity: normal → enhancement
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Mac OS X → All
Version: unspecified → Trunk
note: the code branching for this might not be worth the feature.
I agree with Nicolas.  The change from "2" to "One" grabs my attention unnecessarily, and makes me reparse the sentence.
Blocks: 402278
(In reply to comment #2) 
> See https://bugzilla.mozilla.org/show_bug.cgi?id=402278#c19 and
> https://bugzilla.mozilla.org/show_bug.cgi?id=402278#c21.
OK, I've read this.
From a user and practical point of view, I'm sure we should use "1" and not "One". It's easier to understand. Fx should to be well polished : I think that we aren't writing an essay. Rules are rules only if they are applied in they context.
Here, Fx is counting numbers, and doing operations with them. 2 result of 1+1 download. So in that case "One" is inconsistant, because from a user point of view, you can't add to words to produce a number.

If you agree, as this is a Fx3 new feature, maybe we should flag it to "blocking Fx3 ?".

Flags: blocking-firefox3?
Not blocking, but wanted. I agree with Shawn that less code branching better.
Flags: wanted-firefox3+
Flags: blocking-firefox3?
Flags: blocking-firefox3-
Product: Firefox → Toolkit
Flags: wanted1.9.1?
Attached image With Changes to browser.properties file (obsolete) —
I changed the browser.properties file and it appears to give the desired results. Is the acceptable?
Attached patch patch v0.1 (obsolete) — Splinter Review
Talked to sdwilsh and just the string change is sufficient. The second attached shows screen shots of this string change serving the purpose.
Assignee: nobody → om.brahmana
Status: NEW → ASSIGNED
Attachment #359063 - Flags: review?(gavin.sharp)
Comment on attachment 359063 [details] [diff] [review]
patch v0.1

You should change the entity name to notify localizers of this change. r=me with that.
Attachment #359063 - Flags: review?(gavin.sharp) → review+
Changed the entity names so that the localizers notice the change. Patch contains changes to both files : browser.properties and browser.js

This has r=gavin. So checkin-needed.
Attachment #359063 - Attachment is obsolete: true
Keywords: checkin-needed
Comment on attachment 359222 [details] [diff] [review]
patch v0.2 - New entity name and corresponding code change

> # examples: One active download (2 minutes remaining); 11 paused downloads

That l10n note is incorrect.

>+activeDownloadsStr=1 active download (#2);#1 active downloads (#2)

I don't think that's a proper name for a string.
generally we just append a number to the end of the string when we change it.  That's what you should do here as well.  Be sure to update the localization note too.
Keywords: checkin-needed
Attached patch patch v0.2 (obsolete) — Splinter Review
Addresses the comments.
Attachment #359222 - Attachment is obsolete: true
Attachment #359466 - Flags: review?(gavin.sharp)
Attachment #359466 - Flags: review?(gavin.sharp) → review+
Comment on attachment 359466 [details] [diff] [review]
patch v0.2

I don't really see a problem with appending "Str", fwiw.
Attached patch patch-v1.0Splinter Review
This patch somehow missed checkin the previous time. Updated the patch for current tree. The changes are the same.
Attachment #359057 - Attachment is obsolete: true
Attachment #359466 - Attachment is obsolete: true
Attachment #429360 - Flags: review?(gavin.sharp)
Attachment #429360 - Flags: review?(gavin.sharp) → review+
http://hg.mozilla.org/mozilla-central/rev/7db1b9d406ef
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: