зеркало из https://github.com/mozilla/gecko-dev.git
bug 333375 Task tooltip priority displays as string patch by jminta, r=mvl
This commit is contained in:
Родитель
6c8a5823b7
Коммит
935e351309
|
@ -166,7 +166,22 @@ function getPreviewForTask( toDoItem )
|
|||
|
||||
if (toDoItem.priority && toDoItem.priority != 0)
|
||||
{
|
||||
boxAppendLabeledText(vbox, "tooltipPriority", String(toDoItem.priority));
|
||||
var priorityInteger = parseInt(toDoItem.priority);
|
||||
var priorityString;
|
||||
|
||||
var sbs = Components.classes["@mozilla.org/intl/stringbundle;1"]
|
||||
.getService(Components.interfaces.nsIStringBundleService);
|
||||
var props = sbs.createBundle("chrome://calendar/locale/calendar.properties");
|
||||
|
||||
// These cut-offs should match calendar-event-dialog.js
|
||||
if (priorityInteger >= 1 && priorityInteger <= 4) {
|
||||
priorityString = props.GetStringFromName('highPriority'); // high priority
|
||||
} else if (priorityInteger == 5) {
|
||||
priorityString = props.GetStringFromName('mediumPriority'); // medium priority
|
||||
} else {
|
||||
priorityString = props.GetStringFromName('lowPriority'); // low priority
|
||||
}
|
||||
boxAppendLabeledText(vbox, "tooltipPriority", priorityString);
|
||||
hasHeader = true;
|
||||
}
|
||||
|
||||
|
|
|
@ -64,6 +64,11 @@ statusNeedsAction=Needs Action
|
|||
statusInProcess =In Process
|
||||
statusCompleted =Completed
|
||||
|
||||
# Task priority, these should match the priority.level.* labels in calendar.dtd
|
||||
highPriority=High
|
||||
mediumPriority=Medium
|
||||
lowPriority=Low
|
||||
|
||||
noEventsOrTasksToImport=No events or tasks to import\nfrom file "%1$S".
|
||||
noEventsToSave=No events selected to save.
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче