diff --git a/chrome/content/zotero/advancedSearch.js b/chrome/content/zotero/advancedSearch.js index eb9dd9aa3..eec434fc8 100644 --- a/chrome/content/zotero/advancedSearch.js +++ b/chrome/content/zotero/advancedSearch.js @@ -118,7 +118,7 @@ var ZoteroAdvancedSearch = new function() { if (!name.value) { - newName.value = untitled; + name.value = untitled; } var s = _searchBox.search.clone(); diff --git a/chrome/content/zotero/preferences/preferences_export.js b/chrome/content/zotero/preferences/preferences_export.js index 72e86a459..fc2871ddc 100644 --- a/chrome/content/zotero/preferences/preferences_export.js +++ b/chrome/content/zotero/preferences/preferences_export.js @@ -232,7 +232,7 @@ Zotero_Preferences.Export = { updateQuickCopyInstructions: function () { - var prefix = Zotero.isMac ? 'Cmd+Shift+' : 'Ctrl+Alt+'; + var prefix = Zotero.isMac ? Zotero.getString('general.keys.cmdShift') : Zotero.getString('general.keys.ctrlShift'); var key = Zotero.Prefs.get('keys.copySelectedItemsToClipboard'); var str = Zotero.getString('zotero.preferences.export.quickCopy.instructions', prefix + key); diff --git a/chrome/content/zotero/preferences/preferences_keys.js b/chrome/content/zotero/preferences/preferences_keys.js index 04ee513f4..20f7ecd19 100644 --- a/chrome/content/zotero/preferences/preferences_keys.js +++ b/chrome/content/zotero/preferences/preferences_keys.js @@ -30,7 +30,7 @@ Zotero_Preferences.Keys = { var rows = document.getElementById('zotero-prefpane-keys').getElementsByTagName('row'); for (var i=0; i 3) { - return creators[0].ref.lastName+" et al." + return creators[0].ref.lastName+" "+Zotero.getString('general.etAl'); } } else if (field === 'id' || Zotero.Items.isPrimaryField(field)) { var privField = '_' + field; @@ -3379,6 +3379,8 @@ Zotero.Item.prototype.__defineSetter__('attachmentSyncState', function (val) { case Zotero.Sync.Storage.SYNC_STATE_TO_UPLOAD: case Zotero.Sync.Storage.SYNC_STATE_TO_DOWNLOAD: case Zotero.Sync.Storage.SYNC_STATE_IN_SYNC: + case Zotero.Sync.Storage.SYNC_STATE_FORCE_UPLOAD: + case Zotero.Sync.Storage.SYNC_STATE_FORCE_DOWNLOAD: break; default: diff --git a/chrome/content/zotero/xpcom/data/items.js b/chrome/content/zotero/xpcom/data/items.js index 542525332..e8fddb1ef 100644 --- a/chrome/content/zotero/xpcom/data/items.js +++ b/chrome/content/zotero/xpcom/data/items.js @@ -628,6 +628,7 @@ Zotero.Items = new function() { /* This whole block is to get the firstCreator */ var localizedAnd = Zotero.getString('general.and'); + var localizedEtAl = Zotero.getString('general.etAl'); var sql = "COALESCE(" + // First try for primary creator types "CASE (" + @@ -665,7 +666,7 @@ Zotero.Items = new function() { "LEFT JOIN itemTypeCreatorTypes ITCT " + "ON (IC.creatorTypeID=ITCT.creatorTypeID AND ITCT.itemTypeID=I.itemTypeID) " + "WHERE itemID=I.itemID AND primaryField=1 ORDER BY orderIndex LIMIT 1)" + - " || ' et al.' " + + " || ' " + localizedEtAl + "' " + ") " + "END, " + @@ -691,7 +692,7 @@ Zotero.Items = new function() { "SELECT " + "(SELECT lastName FROM itemCreators NATURAL JOIN creators NATURAL JOIN creatorData " + "WHERE itemID=I.itemID AND creatorTypeID IN (3) ORDER BY orderIndex LIMIT 1)" + - " || ' et al.' " + + " || ' " + localizedEtAl + "' " + ") " + "END, " + @@ -717,7 +718,7 @@ Zotero.Items = new function() { "SELECT " + "(SELECT lastName FROM itemCreators NATURAL JOIN creators NATURAL JOIN creatorData " + "WHERE itemID=I.itemID AND creatorTypeID IN (2) ORDER BY orderIndex LIMIT 1)" + - " || ' et al.' " + + " || ' " + localizedEtAl + "' " + ") " + "END" + ") AS firstCreator"; diff --git a/chrome/content/zotero/xpcom/data/tag.js b/chrome/content/zotero/xpcom/data/tag.js index 71bb53bd3..0c68710b5 100644 --- a/chrome/content/zotero/xpcom/data/tag.js +++ b/chrome/content/zotero/xpcom/data/tag.js @@ -535,10 +535,10 @@ Zotero.Tag.prototype.diff = function (tag, includeMatches, ignoreOnlyDateModifie // For the moment, just compare linked items and increase numDiffs if any differences var d1 = Zotero.Utilities.arrayDiff( - otherData.linkedItems, thisData.linkedItems + thisData.linkedItems, otherData.linkedItems ); var d2 = Zotero.Utilities.arrayDiff( - thisData.linkedItems, otherData.linkedItems + otherData.linkedItems, thisData.linkedItems ); numDiffs += d1.length + d2.length; diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index 26d1b14f3..0c7f385c6 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -1896,8 +1896,8 @@ Zotero.Integration.CitationEditInterface.prototype = { for(var i=0; i diff --git a/chrome/locale/en-US/zotero/zotero.properties b/chrome/locale/en-US/zotero/zotero.properties index 286563ee2..340bcfbd9 100644 --- a/chrome/locale/en-US/zotero/zotero.properties +++ b/chrome/locale/en-US/zotero/zotero.properties @@ -30,6 +30,7 @@ general.no = No general.passed = Passed general.failed = Failed general.and = and +general.etAl = et al. general.accessDenied = Access Denied general.permissionDenied = Permission Denied general.character.singular = character @@ -48,6 +49,8 @@ general.useDefault = Use Default general.openDocumentation = Open Documentation general.numMore = %S more… general.openPreferences = Open Preferences +general.keys.ctrlShift = Ctrl+Shift+ +general.keys.cmdShift = Cmd+Shift+ general.operationInProgress = A Zotero operation is currently in progress. general.operationInProgress.waitUntilFinished = Please wait until it has finished.