mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 928201 - Change Run to Open in Metro download bar [r=emtwo]
This commit is contained in:
parent
6f0df9714d
commit
2cb5c0d54a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user