mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 346264: make 'restore session' button wider by adjusting the label, to make it easier to hit, patch by Simon Bünzli <zeniko@gmail.com>, r=me, ui+r=beltzner
This commit is contained in:
parent
c731b721e3
commit
30b3a33aea
@ -276,7 +276,7 @@ SessionStartup.prototype = {
|
||||
var ssStringBundle = this._getStringBundle("chrome://browser/locale/sessionstore.properties");
|
||||
var restoreTitle = ssStringBundle.formatStringFromName("restoredTitle", [brandShortName], 1);
|
||||
var restoreText = ssStringBundle.formatStringFromName("restoredMsg", [brandShortName], 1);
|
||||
var buttonTitle = ssStringBundle.GetStringFromName("buttonTitle");
|
||||
var okTitle = ssStringBundle.GetStringFromName("okTitle");
|
||||
var cancelTitle = ssStringBundle.GetStringFromName("cancelTitle");
|
||||
|
||||
var promptService = Cc["@mozilla.org/embedcomp/prompt-service;1"].
|
||||
@ -288,7 +288,7 @@ SessionStartup.prototype = {
|
||||
promptService.BUTTON_POS_0_DEFAULT;
|
||||
|
||||
var buttonChoice = promptService.confirmEx(null, restoreTitle, restoreText,
|
||||
flags, buttonTitle, cancelTitle, null,
|
||||
flags, okTitle, cancelTitle, null,
|
||||
null, {});
|
||||
recover = (buttonChoice == 0);
|
||||
}
|
||||
|
@ -1,4 +1,7 @@
|
||||
restoredTitle= %S - Restore Previous Session
|
||||
restoredMsg=Your last %S session closed unexpectedly. You can restore the tabs and windows from your previous session, or start a new session if you think the problem was related to a page you were viewing.
|
||||
buttonTitle=Restore Session
|
||||
|
||||
# Localization note: It is recommended that okTitle be longer than cancelTitle
|
||||
# so that hitting the more prominent button doesn't lead to dataloss (see bug 346264).
|
||||
okTitle=Restore Previous Session
|
||||
cancelTitle=Start New Session
|
||||
|
Loading…
Reference in New Issue
Block a user