Rename Safe Mode to Troubleshooting Mode (#3563)
This commit is contained in:
parent
7811d78cb0
commit
21e50add60
5 changed files with 15 additions and 15 deletions
chrome
components
|
@ -645,11 +645,11 @@ const ZoteroStandalone = new function() {
|
|||
};
|
||||
|
||||
|
||||
this.promptForRestartInSafeMode = async function () {
|
||||
this.promptForRestartInTroubleshootingMode = async function () {
|
||||
let ps = Services.prompt;
|
||||
let [title, description] = await document.l10n.formatValues([
|
||||
'restart-in-safe-mode-dialog-title',
|
||||
'restart-in-safe-mode-dialog-description'
|
||||
'restart-in-troubleshooting-mode-dialog-title',
|
||||
'restart-in-troubleshooting-mode-dialog-description'
|
||||
]);
|
||||
let buttonFlags = ps.BUTTON_POS_0 * ps.BUTTON_TITLE_IS_STRING
|
||||
+ ps.BUTTON_POS_1 * ps.BUTTON_TITLE_CANCEL;
|
||||
|
|
|
@ -415,7 +415,7 @@ var ZoteroPane = new function()
|
|||
Zotero.hiDPI = window.devicePixelRatio > 1;
|
||||
Zotero.hiDPISuffix = Zotero.hiDPI ? "@2x" : "";
|
||||
|
||||
// Show warning in toolbar for 'dev' channel builds and safe mode
|
||||
// Show warning in toolbar for 'dev' channel builds and troubleshooting mode
|
||||
try {
|
||||
let isDevBuild = Zotero.version.includes('-dev');
|
||||
// Uncomment to test
|
||||
|
@ -436,7 +436,7 @@ var ZoteroPane = new function()
|
|||
label.onclick = function () {
|
||||
Zotero.Utilities.Internal.quit(true);
|
||||
};
|
||||
label.textContent = 'Safe Mode';
|
||||
label.textContent = 'Troubleshooting Mode';
|
||||
let syncStop = document.getElementById('zotero-tb-sync-stop');
|
||||
syncStop.parentNode.insertBefore(label, syncStop);
|
||||
}
|
||||
|
|
|
@ -673,9 +673,9 @@
|
|||
oncommand="ZoteroStandalone.DebugOutput.restartEnabled()"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
<menuitem id="menuitem-restart-in-safe-mode"
|
||||
data-l10n-id="restart-in-safe-mode-menuitem"
|
||||
oncommand="ZoteroStandalone.promptForRestartInSafeMode();"/>
|
||||
<menuitem id="menuitem-restart-in-troubleshooting-mode"
|
||||
data-l10n-id="restart-in-troubleshooting-mode-menuitem"
|
||||
oncommand="ZoteroStandalone.promptForRestartInTroubleshootingMode();"/>
|
||||
<menuseparator/>
|
||||
<menuitem id="checkForUpdates"
|
||||
accesskey="&helpCheckForUpdates.accesskey;"
|
||||
|
|
|
@ -187,8 +187,8 @@ licenses-cc-by-nc-sa = Creative Commons Attribution-NonCommercial-ShareAlike 4.0
|
|||
licenses-cc-more-info = Be sure you have read the Creative Commons <a data-l10n-name="license-considerations">Considerations for licensors</a> before placing your work under a CC license. Note that the license you apply cannot be revoked, even if you later choose different terms or cease publishing the work.
|
||||
licenses-cc0-more-info = Be sure you have read the Creative Commons <a data-l10n-name="license-considerations">CC0 FAQ</a> before applying CC0 to your work. Please note that dedicating your work to the public domain is irreversible, even if you later choose different terms or cease publishing the work.
|
||||
|
||||
restart-in-safe-mode-menuitem =
|
||||
.label = Restart in Safe Mode…
|
||||
.accesskey = S
|
||||
restart-in-safe-mode-dialog-title = Restart in Safe Mode
|
||||
restart-in-safe-mode-dialog-description = { -app-name } will restart with all plugins disabled. Some features may not function correctly while Safe Mode is enabled.
|
||||
restart-in-troubleshooting-mode-menuitem =
|
||||
.label = Restart in Troubleshooting Mode…
|
||||
.accesskey = T
|
||||
restart-in-troubleshooting-mode-dialog-title = Restart in Troubleshooting Mode
|
||||
restart-in-troubleshooting-mode-dialog-description = { -app-name } will restart with all plugins disabled. Some features may not function correctly while Troubleshooting Mode is enabled.
|
||||
|
|
|
@ -487,8 +487,8 @@ ZoteroCommandLineHandler.prototype = {
|
|||
zInitOptions.forceDebugLog = 1;
|
||||
}
|
||||
// Pressing Ctrl-C via the terminal is interpreted as a crash, and after three crashes
|
||||
// Firefox starts up in automatic safe mode. To avoid this, we clear the crash counter when
|
||||
// using one of the debug-logging flags, which generally imply terminal usage.
|
||||
// Firefox starts up in automatic safe mode (troubleshooting mode). To avoid this, we clear the crash
|
||||
// counter when using one of the debug-logging flags, which generally imply terminal usage.
|
||||
if (zInitOptions.forceDebugLog) {
|
||||
Services.prefs.getBranch("toolkit.startup.").clearUserPref('recent_crashes');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue