Bug 928201 - Change Run to Open in Metro download bar [r=emtwo]

This commit is contained in:
Matt Brubeck 2013-11-01 16:10:49 -07:00
Родитель a33b468f86
Коммит bf394296f5
5 изменённых файлов: 15 добавлений и 15 удалений

Просмотреть файл

@ -254,7 +254,7 @@ var MetroDownloadsView = {
.replace("#1", this._downloadCount)
} else {
let runButtonText =
Strings.browser.GetStringFromName("downloadRun");
Strings.browser.GetStringFromName("downloadOpen");
message = Strings.browser.formatStringFromName("alertDownloadsDone2",
[this._lastDownload.displayName], 1);
@ -299,7 +299,7 @@ var MetroDownloadsView = {
} else {
title = Strings.browser.formatStringFromName("alertDownloadsDone",
[this._lastDownload.displayName], 1);
msg = Strings.browser.GetStringFromName("downloadRunNow");
msg = Strings.browser.GetStringFromName("downloadOpenNow");
observer = {
observe: function (aSubject, aTopic, aData) {
switch (aTopic) {

Просмотреть файл

@ -74,7 +74,7 @@ HelperAppLauncherDialog.prototype = {
let browserBundle = Services.strings.createBundle("chrome://browser/locale/browser.properties");
let runButtonText =
browserBundle.GetStringFromName("downloadRun");
browserBundle.GetStringFromName("downloadOpen");
let saveButtonText =
browserBundle.GetStringFromName("downloadSave");
let cancelButtonText =
@ -111,7 +111,7 @@ HelperAppLauncherDialog.prototype = {
let document = notificationBox.ownerDocument;
downloadSize = this._getDownloadSize(aLauncher.contentLength);
let msg = browserBundle.GetStringFromName("alertDownloadSave");
let msg = browserBundle.GetStringFromName("alertDownloadSave2");
let fragment = ContentUtil.populateFragmentFromString(
document.createDocumentFragment(),

Просмотреть файл

@ -1,6 +1,6 @@
# 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/.
/* 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/. */
const Ci = Components.interfaces;
const Cc = Components.classes;

Просмотреть файл

@ -13,11 +13,15 @@ MODULE = 'components'
# metro/components.manifest
EXTRA_COMPONENTS += [
'AlertsService.js',
'BrowserStartup.js',
'ContentDispatchChooser.js',
'ContentPermissionPrompt.js',
'DirectoryProvider.js',
'DownloadManagerUI.js',
'HelperAppDialog.js',
'LoginManagerPrompter.js',
'PromptService.js',
'Sidebar.js',
]
if CONFIG['MOZ_SAFE_BROWSING']:
@ -28,10 +32,6 @@ if CONFIG['MOZ_SAFE_BROWSING']:
EXTRA_PP_COMPONENTS += [
'AboutRedirector.js',
'BrowserCLH.js',
'BrowserStartup.js',
'components.manifest',
'DirectoryProvider.js',
'HelperAppDialog.js',
'SessionStore.js',
'Sidebar.js',
]

Просмотреть файл

@ -54,11 +54,11 @@ browserForOpenLocation=Open Location
# Download Manager
downloadsUnknownSize=Unknown size
downloadRun=Run
downloadOpen=Open
downloadSave=Save
downloadCancel=Cancel
downloadTryAgain=Try Again
downloadRunNow=Run it now
downloadOpenNow=Open it now
# LOCALIZATION NOTE (downloadShowInFiles): 'Files' refers to the Windows 8 file explorer
downloadShowInFiles=Show in Files
@ -74,8 +74,8 @@ alertDownloadsDone2=%S has been downloaded
alertTapToSave=Tap to save this file.
alertDownloadsSize=Download too big
alertDownloadsNoSpace=Not enough storage space
# LOCALIZATION NOTE (alertDownloadSave): #1 is the file name, #2 is the file size, #3 is the file host
alertDownloadSave=Do you want to run or save #1 (#2) from #3?
# LOCALIZATION NOTE (alertDownloadSave2): #1 is the file name, #2 is the file size, #3 is the file host
alertDownloadSave2=Do you want to open or save #1 (#2) from #3?
# LOCALIZATION NOTE (alertDownloadMultiple): Semi-colon list of plural forms.
# See: http://developer.mozilla.org/en/docs/Localization_and_Plurals
# #1 is the number of files, #2 is (amount downloaded so far / total amount to download) and #3 is seconds remaining