Closed Bug 453138 Opened 16 years ago Closed 16 years ago

Display 'Last day of the month' recurrence rule as clear text (missing bits and pieces from bug 388418)

Categories

(Calendar :: General, defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mschroeder, Assigned: mschroeder)

Details

Attachments

(1 file, 1 obsolete file)

Attached patch Old patch from bug 388418 (obsolete) — — Splinter Review
Bug 388418, comment 26 has patch (I also attached to this bug) which never got checked in. It adds the missing bits and pieces to display the 'Last day of
the month' recurrence rule as clear text.
Martin, could you provide an updated patch?
Assignee: nobody → mschroeder
Status: NEW → ASSIGNED
Target Milestone: --- → 1.0
Attached patch Patch v1 — — Splinter Review
Attachment #336343 - Attachment is obsolete: true
Attachment #346017 - Flags: review?(Berend.Cornelius)
Comment on attachment 346017 [details] [diff] [review]
Patch v1

From a quick test yesterday the patch seems to work fine. 

-repeatDetailsRuleMonthly1=the %1$S %2$S
+repeatDetailsRuleMonthly1=the %1$S %2$S of every month

I think the property name should be changed to ensure that localization teams pick up the change.
Comment on attachment 346017 [details] [diff] [review]
Patch v1

Patch looks good. 
Just some comments that you may probably want to consider:
>+                                ruleString = calGetString(
>+                                  "calendar-event-dialog",
>+                                  "repeatDetailsRuleMonthly7");

The wrapping could be improved at some places. See also
https://wiki.mozilla.org/Calendar:Style_Guide#Wrapping
(I know of course that you have not introduced this)
The name of the file “calendar-dialog-utils.js” is actually not valid anymore as the code is also used in other places outside the dialog. But on the other hand with its current naming it should be moved to “base/content/dialogs”. Referring to resources of calendar-dialog-properties is for the similarily  not very elegant anymore. We should either move it to the dialogs folder or restructure the code of this file. Probably we should just take the first option.

The use of the 'interval' attribute is not really clear. I suggest there should be more comments added to the idl file or/and to the source file.
r=berend
Attachment #346017 - Flags: review?(Berend.Cornelius) → review+
Pushed to comm-central <http://hg.mozilla.org/comm-central/rev/aa6e68112fd2>

-> FIXED(In reply to comment #4)

> (From update of attachment 346017 [details] [diff] [review])
> The wrapping could be improved at some places.

We should do this in a new bug report because the changes would be spread all over the file.

> The name of the file “calendar-dialog-utils.js” is actually not valid anymore
> as the code is also used in other places outside the dialog. But on the other
> hand with its current naming it should be moved to “base/content/dialogs”.
> Referring to resources of calendar-dialog-properties is for the similarily  not
> very elegant anymore. We should either move it to the dialogs folder or
> restructure the code of this file. Probably we should just take the first
> option.

Needs a spin-off bug.

> The use of the 'interval' attribute is not really clear. I suggest there should
> be more comments added to the idl file or/and to the source file.

Berend, please file a spin-off bug.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
These bugs are likely targeted at Lightning 1.0b1, not Lightning 1.0. If this change was done in error, please adjust the target milestone to its correct value. To filter on this bugspam, you can use "lightning-10-target-move".
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: