Bug 758677 Implement a Preference Pane for Offline Applications r=IanN.
authorPhilip Chee <philip.chee@gmail.com>
Sun, 08 Jul 2012 00:51:26 +0800
changeset 7852 d9a41bb7611029a873ec1d5a4ff223277e8de3e4
parent 7851 b30b349cfd58cb58c8137401432f8b6d2c946f21
child 7853 4f5ac39789f52f5c46c4eece8ae7c791b9e5fe7e
push id1
push useraxel@mozilla.com
push dateTue, 10 Oct 2017 22:14:06 +0000
reviewersIanN
bugs758677
Bug 758677 Implement a Preference Pane for Offline Applications r=IanN. X-Channel-Repo: comm-central X-Channel-Converted-Revision: 827520edfaaac54ec35ee7c4d3ffe77d2fcd9ff7
suite/chrome/common/dataman/dataman.properties
suite/chrome/common/permissions/permissionsManager.properties
suite/chrome/common/pref/pref-offlineapps.dtd
suite/chrome/common/pref/preferences.dtd
suite/chrome/common/pref/prefutilities.properties
--- a/suite/chrome/common/dataman/dataman.properties
+++ b/suite/chrome/common/dataman/dataman.properties
@@ -15,16 +15,17 @@ cookies.deleteSelectedTitle=Remove Selec
 cookies.deleteSelectedYes=&Remove
 
 # permissions
 perm.allowXULXBL.label=Use XUL/XBL Markup
 perm.cookie.label=Set Cookies
 perm.geo.label=Share Location
 perm.image.label=Load Images
 perm.install.label=Install Add-ons
+perm.offline-app.label=Offline Web Applications
 perm.object.label=Run Plugins
 perm.password.label=Save Passwords
 perm.plugins.label=Activate Plugins
 perm.popup.label=Open Popup Windows
 perm.script.label=Run Scripts
 perm.stylesheet.label=Load Stylesheets
 
 perm.type.default=Select a type
--- a/suite/chrome/common/permissions/permissionsManager.properties
+++ b/suite/chrome/common/permissions/permissionsManager.properties
@@ -6,15 +6,18 @@ installpermissionstext=You can specify w
 installpermissionstitle=Allowed Websites - Software Installation
 installpermissionshelp=advanced_pref_installation
 popuppermissionstext=You can specify which websites are allowed to open popup windows. Type the exact address of the website you want to allow and then click Allow.
 popuppermissionstitle=Allowed Websites - Popups
 popuppermissionshelp=pop_up_blocking
 imagepermissionstext=You can specify which websites are allowed to load images. Type the exact address of the website you want to manage and then click Block or Allow.
 imagepermissionstitle=Exceptions - Images
 imagepermissionshelp=images-help-managing
+offline-apppermissionstext=You can specify which websites are allowed to store data for offline use. Type the exact address of the website you want to manage and then click Block or Allow.
+offline-apppermissionstitle=Offline Data
+offline-apppermissionshelp=offline_apps
 
 can=Allow
 canSession=Allow for Session
 cannot=Block
 
 alertInvalidTitle=Invalid Website Entered
 alertInvalid=The website %S is invalid.
new file mode 100644
--- /dev/null
+++ b/suite/chrome/common/pref/pref-offlineapps.dtd
@@ -0,0 +1,17 @@
+<!-- extracted from content/pref-offlineapps.xul -->
+
+<!--LOCALIZATION NOTE : FILE Offline Apps prefs dialog -->
+<!ENTITY pref.offlineapps.title             "Offline Web Applications">
+<!ENTITY pref.offlineCache.caption          "Offline Web Content and User Data">
+
+<!ENTITY clearOfflineAppCache.label         "Clear">
+<!ENTITY clearOfflineAppCache.accesskey     "C">
+
+<!ENTITY offlineNotify.label                "Notify me when a website wants to store data for offline use.">
+<!ENTITY offlineNotify.accesskey            "N">
+<!ENTITY offlineNotifyPermissions.label     "Manage Permissions">
+<!ENTITY offlineNotifyPermissions.accesskey "P">
+
+<!ENTITY offlineAppsList.label              "The following websites are allowed to store data for offline use:">
+<!ENTITY offlineAppsListRemove.label        "Clear data…">
+<!ENTITY offlineAppsListRemove.accesskey    "d">
--- a/suite/chrome/common/pref/preferences.dtd
+++ b/suite/chrome/common/pref/preferences.dtd
@@ -25,16 +25,17 @@
 <!ENTITY masterpass.label "Master Passwords">
 <!ENTITY ssl.label "SSL">
 <!ENTITY certs.label "Certificates">
 <!ENTITY validation.label "Validation">
 <!ENTITY sync.label "Sync">
 <!ENTITY advance.label "Advanced">
 <!ENTITY down.label "Download">
 <!ENTITY cache.label "Cache">
+<!ENTITY offlineApps.label "Offline Apps">
 <!ENTITY proxies.label "Proxies">
 <!ENTITY httpnetworking.label "HTTP Networking">
 <!ENTITY smart.label "Software Installation">
 <!ENTITY download.label "Downloads">
 <!ENTITY keynav.label "Keyboard Navigation">
 <!ENTITY findAsYouType.label "Find As You Type">
 <!ENTITY search.label "Internet Search">
 <!ENTITY policies.label "Security Policies">
--- a/suite/chrome/common/pref/prefutilities.properties
+++ b/suite/chrome/common/pref/prefutilities.properties
@@ -1,15 +1,29 @@
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 cachefolder=Choose Cache Folder
 #LOCALIZATION NOTE (%1$S) is the size and (%2$S) is the unit of disk space.
 cacheSizeInfo=Your cache is currently using %1$S %2$S of disk space.
+
+# Offline apps
+appCacheSizeInfo=Your application cache is currently using %1$S %2$S of disk space.
+offlineAppRemoveTitle=Remove offline website data
+offlineAppRemovePrompt=After removing this data, %S will not be available offline.  Are you sure you want to remove this offline website?
+offlineAppRemoveConfirm=Remove offline data
+
+# LOCALIZATION NOTE: The next string is for the disk usage of the
+# offline application
+#   e.g. offlineAppUsage : "50.23 MB"
+#   %1$S = size (in bytes or megabytes, ...)
+#   %2$S = unit of measure (bytes, KB, MB, ...)
+offlineAppUsage=%1$S %2$S
+
 choosehomepage=Choose Home Page
 downloadfolder=Choose a Download Folder
 desktopFolderName=Desktop
 downloadsFolderName=Downloads
 choosesound=Choose a sound
 
 SoundFiles=Sounds