Monotone-Parent: c2a5e3fb9246462545f9ecf1c552400ae0d6a9e9

Monotone-Revision: b8ad0061e865a522c79c6a19bc8d7841469af81a

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-06-02T19:11:15
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2010-06-02 19:11:15 +00:00
parent d12f6ac78c
commit ba2b9aad81
17 changed files with 103 additions and 104 deletions
+10 -14
View File
@@ -1028,7 +1028,7 @@ function folderSubscriptionCallback(http) {
http.callbackData["method"](http.callbackData["data"]);
}
else
window.alert(getLabel("Unable to subscribe to that folder!"));
window.alert(_("Unable to subscribe to that folder!"));
document.subscriptionAjaxRequest = null;
}
else
@@ -1053,7 +1053,7 @@ function subscribeToFolder(refreshCallback, refreshCallbackData) {
rfCbData);
}
else
refreshCallbackData["window"].alert(getLabel("You cannot subscribe to a folder that you own!"));
refreshCallbackData["window"].alert(_("You cannot subscribe to a folder that you own!"));
}
function folderUnsubscriptionCallback(http) {
@@ -1064,7 +1064,7 @@ function folderUnsubscriptionCallback(http) {
http.callbackData["method"](http.callbackData["data"]);
}
else
window.alert(getLabel("Unable to unsubscribe from that folder!"));
window.alert(_("Unable to unsubscribe from that folder!"));
}
}
@@ -1084,7 +1084,7 @@ function unsubscribeFromFolder(folderUrl, owner, refreshCallback,
triggerAjaxRequest(url, folderUnsubscriptionCallback, rfCbData);
}
else
window.alert(getLabel("You cannot unsubscribe from a folder that you own!"));
window.alert(_("You cannot unsubscribe from a folder that you own!"));
}
}
@@ -1205,21 +1205,21 @@ function showAlarmCallback(http) {
&& http.status == 200) {
if (http.responseText.length) {
var data = http.responseText.evalJSON(true);
var msg = getLabel("Reminder:") + " " + data["summary"] + "\n";
var msg = _("Reminder:") + " " + data["summary"] + "\n";
if (data["startDate"]) {
msg += getLabel("Start:") + " " + data["startDate"];
msg += _("Start:") + " " + data["startDate"];
if (parseInt(data["isAllDay"]) == 0)
msg += " - " + data["startTime"];
msg += "\n";
}
if (data["dueDate"]) {
msg += getLabel("Due Date:") + " " + data["dueDate"];
msg += _("Due Date:") + " " + data["dueDate"];
if (data["dueTime"])
msg += " - " + data["dueTime"];
msg += "\n";
}
if (data["location"].length)
msg += "\n" + getLabel("Location:") + " " + data["location"];
msg += "\n" + _("Location:") + " " + data["location"];
if (data["description"].length)
msg += "\n\n" + data["description"];
@@ -1534,7 +1534,7 @@ function createFolderCallback(http) {
data.okCB(data.name, "/" + http.responseText, UserLogin);
}
else if (http.status == 409) {
alert (getLabel("A folder by that name already exists."));
alert (_("A folder by that name already exists."));
}
else {
if (data.notOkCB)
@@ -1552,7 +1552,7 @@ function delegateInvitation(componentUrl, callbackFunction, callbackData) {
if (input.readAttribute("uid") != null)
delegatedTo = input.readAttribute("uid");
else if (input.value.blank())
alert(getLabel("noEmailForDelegation"));
alert(_("noEmailForDelegation"));
else
delegatedTo = input.value;
@@ -1607,10 +1607,6 @@ function _(key) {
return value;
}
function getLabel(key) {
return _(key);
}
/**
*
* AJAX IFRAME METHOD (AIM)