www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 3089685b336c69ca070b10182de8308c39d4a048
parent 9a87f1595660a1715f3448172d6ce008e308adec
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sat, 21 Feb 2015 20:33:58 -0500

Fix display of some startup errors in toolbar icon tooltip

Diffstat:
Mchrome/content/zotero/icon.js | 11++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/chrome/content/zotero/icon.js b/chrome/content/zotero/icon.js @@ -175,19 +175,19 @@ function getTooltipText(button) { if (key) { // Add RLE mark in RTL mode to make shortcut render the right way text += (Zotero.rtl ? ' \u202B' : ' ') + '(' - + (Zotero.isMac ? '⇧⌘' : Zotero.getString('general.keys.ctrlShift')) - + key - + ')'; + + (Zotero.isMac ? '⇧⌘' : Zotero.getString('general.keys.ctrlShift')) + + key + + ')'; } } else { if (Zotero) { - var errMsg = Zotero.startupError; + text = Zotero.startupError; } // Use defaults if necessary - if (!errMsg) { + if (!text) { // Get the stringbundle manually let src = 'chrome://zotero/locale/zotero.properties'; let localeService = Components.classes['@mozilla.org/intl/nslocaleservice;1'] @@ -203,6 +203,7 @@ function getTooltipText(button) { case 'save': text = Zotero.getString('ingester.saveToZotero'); + break; } return text; }