Closed Bug 469554 Opened 17 years ago Closed 17 years ago

Use pluralForm in Task tree - Due In column

Categories

(Calendar :: Tasks, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: wladow, Assigned: wladow)

Details

Attachments

(1 file)

We are using different strings for 1,2 and N hours/days in Task tree - Due In column, what is insufficient workaround. Let's use pluralForm instead.
Attachment #352916 - Flags: review?(philipp)
Status: NEW → ASSIGNED
Attachment #352916 - Flags: review?(philipp) → review+
Comment on attachment 352916 [details] [diff] [review] use pluralForm v1 >diff --git a/calendar/base/content/calendar-task-tree.xml b/calendar/base/content/calendar-task-tree.xml >--- a/calendar/base/content/calendar-task-tree.xml >+++ b/calendar/base/content/calendar-task-tree.xml >@@ -200,25 +200,17 @@ > <method name="duration"> > <parameter name="aTask"/> > <body><![CDATA[ >+ Components.utils.import("resource://gre/modules/PluralForm.jsm"); I'd prefer this happening in the <resource> block, but I believe thats not possible. Instead, lets do so once in the constructor. r=philipp with that fixed, will do so before checkin.
While at it, I also moved the ctor/dtor to the top of the implementation. Pushed to comm-central <http://hg.mozilla.org/comm-central/rev/162f1c271f14> -> FIXED
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Target Milestone: --- → 1.0
Target Milestone: 1.0 → 1.0b1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: