Tweak the text a bit in #410

This commit is contained in:
Dan Stillman 2013-11-13 00:31:45 -05:00
parent 8c3cf11df1
commit 8e52dcca42
2 changed files with 17 additions and 6 deletions

View File

@ -643,12 +643,17 @@ Components.utils.import("resource://gre/modules/Services.jsm");
var ps = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]
.getService(Components.interfaces.nsIPromptService);
var buttonFlags = (ps.BUTTON_POS_0) * (ps.BUTTON_TITLE_IS_STRING)
+ (ps.BUTTON_POS_1) * (ps.BUTTON_TITLE_OK)
+ (ps.BUTTON_POS_1) * (ps.BUTTON_TITLE_CANCEL)
+ ps.BUTTON_POS_0_DEFAULT;
var index = ps.confirmEx(null, "", Zotero.startupError, buttonFlags,
Zotero.getString('general.checkForUpdate'), null, null,
null, {});
var index = ps.confirmEx(
null,
Zotero.getString('general.error'),
Zotero.startupError,
buttonFlags,
Zotero.getString('general.checkForUpdate'),
null, null, null, {}
);
// "Check for updates" button
if(index === 0) {
@ -667,7 +672,11 @@ Components.utils.import("resource://gre/modules/Services.jsm");
addon.applyBackgroundUpdates = AddonManager.AUTOUPDATE_DISABLE;
addon.findUpdates({
onNoUpdateAvailable: function() {
ps.alert(null, '', Zotero.getString('zotero.preferences.update.upToDate'));
ps.alert(
null,
Zotero.getString('general.noUpdatesFound'),
Zotero.getString('general.isUpToDate', 'Zotero')
);
},
onUpdateAvailable: function() {
// Show available update

View File

@ -20,10 +20,12 @@ general.tryAgainLater = Please try again in a few minutes.
general.serverError = The server returned an error. Please try again.
general.restartFirefox = Please restart %S.
general.restartFirefoxAndTryAgain = Please restart %S and try again.
general.checkForUpdate = Check for update
general.checkForUpdate = Check for Update
general.actionCannotBeUndone = This action cannot be undone.
general.install = Install
general.updateAvailable = Update Available
general.noUpdatesFound = No Updates Found
general.isUpToDate = %S is up to date.
general.upgrade = Upgrade
general.yes = Yes
general.no = No