Closed Bug 563813 Opened 16 years ago Closed 16 years ago

Localization issue for menu "Status" in "New event/New task" dialogs

Categories

(Calendar :: Dialogs, defect)

Lightning 1.0b1
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bv1578, Assigned: bv1578)

Details

Attachments

(3 files, 1 obsolete file)

The menu Options->Status in "New event" dialog and the drop-down box "Status" in "New task" dialog have the same strings for two entries: "Not specified" and "Cancelled", but some languages need different strings because the entries refer to "New event" and "New task" that could have different genders (e.g. in Italian language "Nuovo evento" and "Nuova attivitΓ " are masculine and feminine genders respectively).
Attached patch patch - v1 (obsolete) β€” β€” Splinter Review
This patch adds two strings that are used in the drop-down menu "Status" (dialog "New Task") instead of the original strings. I hope it could be reviewed before the string freeze. Sorry for this "extra" work Philipp ;-)
Assignee: nobody → bv1578
Status: NEW → ASSIGNED
Attachment #443486 - Flags: review?(philipp)
Nit: Shouldn't it be "Canceled" instead of "Cancelled" for en-US locale?
(In reply to comment #2) > Nit: Shouldn't it be "Canceled" instead of "Cancelled" for en-US locale? You are right Stefan: http://dictionary.reference.com/browse/cancel Do I have to change the strings in .dtd and .properties files? It seems there are 3 strings to change.
Attached patch patch - v2 β€” β€” Splinter Review
Trying to modify the others strings from "Cancelled" to "Canceled", I've found out that the original issue (only for the status "Cancelled") also occurs in the tooltip of events and tasks in the calendar view, in the unifinder and in the task list in task view, i.e. there is a unique string for "cancelled" status for events and tasks. I attach a new patch that fixes these cases too. I haven't changed the word "Cancelled" in the strings name and in every comment.
Attachment #443486 - Attachment is obsolete: true
Attachment #443861 - Flags: review?(philipp)
Attachment #443486 - Flags: review?(philipp)
Comment on attachment 443861 [details] [diff] [review] patch - v2 Looks good, r=philipp
Attachment #443861 - Flags: review?(philipp) → review+
Pushed to comm-central <http://hg.mozilla.org/comm-central/rev/eafc6d2f2a8e> -> FIXED
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: --- → 1.0b2
Reopening because calendar-summary-dialog still uses the label: newevent.status.cancelled.label , so that dialog is currently broken
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
note that bug 391673 also broke that dialog, I think it would make things simpler if we could track the fix for all regressions in that dialog here so I will leave the other bug closed.
Attached patch Fix Regression - v1 β€” β€” Splinter Review
This patch fixes both regressions. Note most of those changes are whitespace changes to align the xml
Attachment #444158 - Flags: review?(simon.at.orcl)
Attachment #444158 - Flags: review?(simon.at.orcl) → review+
Looks good r=simon
Pushed to comm-central <http://hg.mozilla.org/comm-central/rev/0f01091253c9> -> FIXED
Status: REOPENED → RESOLVED
Closed: 16 years ago16 years ago
Resolution: --- → FIXED
Sorry, I reopen again because with the last fix there is again the localization issue in the summary dialog (status "cancelled" has the same string for events and tasks). I attach a working patch to fix it. I was writing a patch but Philipp has been faster ;-)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attached patch Fix a second regression β€” β€” Splinter Review
I hope it's everything fine this time. I would ask a question: under what circumstance the menulist "item-alarm" should appear in the dialog? If the calendar is read only and the event has a reminder, should the menulist be present when the Summary dialog appears? To test it and seeing the menulist, I set the calendar read-only and momentarily removed the NOT operator before window.readOnly http://mxr.mozilla.org/comm-central/source/calendar/base/content/dialogs/calendar-summary-dialog.js#118 .
Attachment #444197 - Flags: review?(philipp)
> I would ask a question: under what circumstance the > menulist "item-alarm" should appear in the dialog? This dialog is not only shown when the calendar is read-only but when the item is an invitation in a scheduling calendar, in which case the user can set a participation status and also an alarm.
OK Simon, thanks for your explanation.
Comment on attachment 444197 [details] [diff] [review] Fix a second regression > for (var i = 0; i < statusRow.childNodes.length; i++) { > if (statusRow.childNodes[i].getAttribute("status") == status) { > statusRow.removeAttribute("hidden"); >+ if (status == "CANCELLED" && cal.isToDo(item)) { >+ i++; >+ } A comment would be nice here, I'll add one. r=philipp
Attachment #444197 - Flags: review?(philipp) → review+
Pushed to comm-central <http://hg.mozilla.org/comm-central/rev/6f195902e307> -> FIXED
Status: REOPENED → RESOLVED
Closed: 16 years ago16 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: