Link to manual word plugin installation instructions on install failure.
Closes #2444
This commit is contained in:
parent
6d4f3739de
commit
0f2273ea43
2 changed files with 13 additions and 4 deletions
|
@ -722,6 +722,7 @@ zotero.preferences.export.quickCopy.citationInstructions = For citation styles,
|
|||
|
||||
zotero.preferences.wordProcessors.installationSuccess = Installation was successful.
|
||||
zotero.preferences.wordProcessors.installationError = Installation could not be completed because an error occurred. Please ensure that %1$S is closed, and then restart %2$S.
|
||||
zotero.preferences.wordProcessors.manualInstallation.button = Manual Installation
|
||||
zotero.preferences.wordProcessors.installed = The %S add-in is currently installed.
|
||||
zotero.preferences.wordProcessors.notInstalled = The %S add-in is not currently installed.
|
||||
zotero.preferences.wordProcessors.install = Install %S Add-in
|
||||
|
|
|
@ -167,10 +167,18 @@ ZoteroPluginInstaller.prototype = {
|
|||
this._errorDisplayed = true;
|
||||
var addon = this._addon;
|
||||
setTimeout(function() {
|
||||
Components.classes["@mozilla.org/embedcomp/prompt-service;1"]
|
||||
.getService(Components.interfaces.nsIPromptService)
|
||||
.alert(null, addon.EXTENSION_STRING,
|
||||
(error ? error : Zotero.getString("zotero.preferences.wordProcessors.installationError", [addon.APP, Zotero.appName])));
|
||||
var ps = Services.prompt;
|
||||
var buttonFlags = ps.BUTTON_POS_0 * ps.BUTTON_TITLE_OK
|
||||
+ (ps.BUTTON_POS_1) * (ps.BUTTON_TITLE_IS_STRING);
|
||||
var result = ps.confirmEx(null,
|
||||
addon.EXTENSION_STRING,
|
||||
(error ? error : Zotero.getString("zotero.preferences.wordProcessors.installationError", [addon.APP, Zotero.appName])),
|
||||
buttonFlags, null,
|
||||
Zotero.getString('zotero.preferences.wordProcessors.manualInstallation.button'),
|
||||
null, null, {});
|
||||
if (result == 1) {
|
||||
Zotero.launchURL("https://www.zotero.org/support/word_processor_plugin_manual_installation");
|
||||
}
|
||||
}, 0);
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue