Bug 849287 - Clean up strings for Metro site permission notifications [r=jimm]

This commit is contained in:
Matt Brubeck 2013-03-08 13:51:24 -08:00
parent a1fc44bc09
commit 81de7606e8
3 changed files with 3 additions and 17 deletions

View File

@ -42,20 +42,16 @@ var OfflineApps = {
OfflineApps.allowSite(notification.documents[i], aTarget);
}
},{
label: strings.GetStringFromName("offlineApps.never"),
label: strings.GetStringFromName("contentPermissions.neverForSite"),
accessKey: "",
callback: function() {
for (let i = 0; i < notification.documents.length; i++)
OfflineApps.disallowSite(notification.documents[i]);
}
},{
label: strings.GetStringFromName("offlineApps.notNow"),
accessKey: "",
callback: function() { /* noop */ }
}];
const priority = notificationBox.PRIORITY_INFO_LOW;
let message = strings.formatStringFromName("offlineApps.available2", [host], 1);
let message = strings.formatStringFromName("offlineApps.wantsTo", [host], 1);
notification = notificationBox.appendNotification(message, notificationID, "", priority, buttons);
notification.documents = [aRequest];
}

View File

@ -15,8 +15,7 @@ const kEntities = {
"geolocation": "geolocation2",
"desktop-notification": "desktopNotification",
"indexedDB": "offlineApps",
"indexedDBQuota": "indexedDBQuota",
"openWebappsManage": "openWebappsManage"
"indexedDBQuota": "indexedDBQuota"
};
const kIcons = {

View File

@ -59,22 +59,13 @@ typeError=Error:
typeWarning=Warning:
# Offline web applications
offlineApps.available2=%S wants to store data on your device for offline use.
offlineApps.allow=Allow
offlineApps.never=Don't Allow
offlineApps.notNow=Not Now
# New-style ContentPermissionPrompt values
offlineApps.wantsTo=%S wants to store data on your device for offline use.
# IndexedDB Quota increases
indexedDBQuota.allow=Allow
indexedDBQuota.wantsTo=%S wants to store a lot of data on your device for offline use.
# Open Web Apps management API
openWebappsManage.allow=Allow
openWebappsManage.wantsTo=%S wants to manage applications on your device.
# Bookmark List
bookmarkList.desktop=Desktop Bookmarks