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)
Tracking
(Not tracked)
RESOLVED
FIXED
1.0b2
People
(Reporter: bv1578, Assigned: bv1578)
Details
Attachments
(3 files, 1 obsolete file)
|
9.48 KB,
patch
|
Fallen
:
review+
|
Details | Diff | Splinter Review |
|
13.64 KB,
patch
|
nomisvai
:
review+
|
Details | Diff | Splinter Review |
|
2.12 KB,
patch
|
Fallen
:
review+
|
Details | Diff | Splinter Review |
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).
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 ;-)
Comment 2•16 years ago
|
||
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.
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 5•16 years ago
|
||
Comment on attachment 443861 [details] [diff] [review]
patch - v2
Looks good, r=philipp
Attachment #443861 -
Flags: review?(philipp) → review+
Comment 6•16 years ago
|
||
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
Comment 7•16 years ago
|
||
Pushed to comm-1.9.2 <http://hg.mozilla.org/releases/comm-1.9.2/rev/06e29a1b0949>
-> FIXED
Comment 8•16 years ago
|
||
Reopening because calendar-summary-dialog still uses the label: newevent.status.cancelled.label , so that dialog is currently broken
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 9•16 years ago
|
||
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.
Comment 10•16 years ago
|
||
This patch fixes both regressions. Note most of those changes are whitespace
changes to align the xml
Attachment #444158 -
Flags: review?(simon.at.orcl)
Updated•16 years ago
|
Attachment #444158 -
Flags: review?(simon.at.orcl) → review+
Comment 11•16 years ago
|
||
Looks good r=simon
Comment 12•16 years ago
|
||
Pushed to comm-central <http://hg.mozilla.org/comm-central/rev/0f01091253c9>
-> FIXED
Status: REOPENED → RESOLVED
Closed: 16 years ago → 16 years ago
Resolution: --- → FIXED
Comment 13•16 years ago
|
||
Pushed to comm-1.9.2 <http://hg.mozilla.org/releases/comm-1.9.2/rev/27673b78a229>
-> FIXED
| Assignee | ||
Comment 14•16 years ago
|
||
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 → ---
| Assignee | ||
Comment 15•16 years ago
|
||
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)
Comment 16•16 years ago
|
||
> 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.
| Assignee | ||
Comment 17•16 years ago
|
||
OK Simon, thanks for your explanation.
Comment 18•16 years ago
|
||
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+
Comment 19•16 years ago
|
||
Pushed to comm-central <http://hg.mozilla.org/comm-central/rev/6f195902e307>
-> FIXED
Status: REOPENED → RESOLVED
Closed: 16 years ago → 16 years ago
Resolution: --- → FIXED
Comment 20•16 years ago
|
||
Pushed to comm-1.9.2 <http://hg.mozilla.org/releases/comm-1.9.2/rev/084aa9c32762>
-> FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•