mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 644379 - Safe mode restart dialog should use "Restart" for its button text, not OK. r=dao, ui-r=faaborg
--HG-- extra : rebase_source : e3214680b535e4b4162ff3edd55c95bea598124c
This commit is contained in:
parent
c25456b8bb
commit
f9ef5ae7a8
@ -8510,8 +8510,17 @@ function safeModeRestart()
|
|||||||
let promptTitle = gNavigatorBundle.getString("safeModeRestartPromptTitle");
|
let promptTitle = gNavigatorBundle.getString("safeModeRestartPromptTitle");
|
||||||
let promptMessage =
|
let promptMessage =
|
||||||
gNavigatorBundle.getString("safeModeRestartPromptMessage");
|
gNavigatorBundle.getString("safeModeRestartPromptMessage");
|
||||||
let rv = Services.prompt.confirm(window, promptTitle, promptMessage);
|
let restartText = gNavigatorBundle.getString("safeModeRestartButton");
|
||||||
if (rv) {
|
let buttonFlags = (Services.prompt.BUTTON_POS_0 *
|
||||||
|
Services.prompt.BUTTON_TITLE_IS_STRING) +
|
||||||
|
(Services.prompt.BUTTON_POS_1 *
|
||||||
|
Services.prompt.BUTTON_TITLE_CANCEL) +
|
||||||
|
Services.prompt.BUTTON_POS_0_DEFAULT;
|
||||||
|
|
||||||
|
let rv = Services.prompt.confirmEx(window, promptTitle, promptMessage,
|
||||||
|
buttonFlags, restartText, null, null,
|
||||||
|
null, {});
|
||||||
|
if (rv == 0) {
|
||||||
let environment = Components.classes["@mozilla.org/process/environment;1"].
|
let environment = Components.classes["@mozilla.org/process/environment;1"].
|
||||||
getService(Components.interfaces.nsIEnvironment);
|
getService(Components.interfaces.nsIEnvironment);
|
||||||
environment.set("MOZ_SAFE_MODE_RESTART", "1");
|
environment.set("MOZ_SAFE_MODE_RESTART", "1");
|
||||||
|
@ -306,6 +306,7 @@ extensions.{972ce4c6-7e08-4474-a285-3208198ce6fd}.description=The default theme.
|
|||||||
# safeModeRestart
|
# safeModeRestart
|
||||||
safeModeRestartPromptTitle=Restart with Add-ons Disabled
|
safeModeRestartPromptTitle=Restart with Add-ons Disabled
|
||||||
safeModeRestartPromptMessage=Are you sure you want to disable all add-ons and restart?
|
safeModeRestartPromptMessage=Are you sure you want to disable all add-ons and restart?
|
||||||
|
safeModeRestartButton=Restart
|
||||||
|
|
||||||
# LOCALIZATION NOTE (browser.menu.showCharacterEncoding): Set to the string
|
# LOCALIZATION NOTE (browser.menu.showCharacterEncoding): Set to the string
|
||||||
# "true" (spelled and capitalized exactly that way) to show the "Character
|
# "true" (spelled and capitalized exactly that way) to show the "Character
|
||||||
|
Loading…
Reference in New Issue
Block a user