diff --git a/chrome/content/zotero/xpcom/sync/syncRunner.js b/chrome/content/zotero/xpcom/sync/syncRunner.js index d6ad90f5b7..17f2ceead9 100644 --- a/chrome/content/zotero/xpcom/sync/syncRunner.js +++ b/chrome/content/zotero/xpcom/sync/syncRunner.js @@ -966,7 +966,6 @@ Zotero.Sync.Runner_Module = function (options = {}) { // Update sync error icon var icon = doc.getElementById('zotero-tb-sync-error'); - Zotero.debug(icon + ""); this.updateErrorIcon(icon, state, errors); // Update sync icon @@ -1119,15 +1118,21 @@ Zotero.Sync.Runner_Module = function (options = {}) { /** - * Register label in sync icon tooltip to receive updates + * Register labels in sync icon tooltip to receive updates * * If no label passed, unregister current label * - * @param {Tooltip} [label] + * @param {Tooltip} [tooltip] */ - this.registerSyncStatusLabel = function (statusLabel, lastSyncLabel) { - _currentSyncStatusLabel = statusLabel; - _currentLastSyncLabel = lastSyncLabel; + this.registerSyncStatus = function (tooltip) { + if (tooltip) { + _currentSyncStatusLabel = tooltip.firstChild.nextSibling; + _currentLastSyncLabel = tooltip.firstChild.nextSibling.nextSibling; + } + else { + _currentSyncStatusLabel = null; + _currentLastSyncLabel = null; + } if (_currentSyncStatusLabel) { _updateSyncStatusLabel(); } diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 07d16cabed..8fede563e8 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -113,6 +113,12 @@ var ZoteroPane = new function() document.getElementById('zotero-pane-stack').setAttribute('oldsearchfield', 'true') } + // Set the sync tooltip label + Components.utils.import("resource://zotero/config.js"); + document.getElementById('zotero-tb-sync-label').value = Zotero.getString( + 'sync.syncWith', ZOTERO_CONFIG.DOMAIN_NAME + ); + if (Zotero.isStandalone) { document.getElementById('zotero-tb-feed-add-fromPage').hidden = true; document.getElementById('zotero-tb-feed-add-fromPage-menu').hidden = true; diff --git a/chrome/content/zotero/zoteroPane.xul b/chrome/content/zotero/zoteroPane.xul index d2898e0317..0536867370 100644 --- a/chrome/content/zotero/zoteroPane.xul +++ b/chrome/content/zotero/zoteroPane.xul @@ -237,10 +237,10 @@ oncommand="Zotero.Sync.Server.canAutoResetClient = true; Zotero.Sync.Server.manualSyncRequired = false; Zotero.Sync.Runner.sync()"> - diff --git a/chrome/locale/en-US/zotero/zotero.dtd b/chrome/locale/en-US/zotero/zotero.dtd index f9840d84ef..356d9b8434 100644 --- a/chrome/locale/en-US/zotero/zotero.dtd +++ b/chrome/locale/en-US/zotero/zotero.dtd @@ -237,7 +237,6 @@ - diff --git a/chrome/locale/en-US/zotero/zotero.properties b/chrome/locale/en-US/zotero/zotero.properties index 8500af8254..11a9a712a9 100644 --- a/chrome/locale/en-US/zotero/zotero.properties +++ b/chrome/locale/en-US/zotero/zotero.properties @@ -809,6 +809,7 @@ styles.abbreviations.parseError = The abbreviations file "%1$S" is not valid JS styles.abbreviations.missingInfo = The abbreviations file "%1$S" does not specify a complete info block. sync.sync = Sync +sync.syncWith = Sync with %S sync.cancel = Cancel Sync sync.openSyncPreferences = Open Sync Preferences sync.resetGroupAndSync = Reset Group and Sync