From acb7c22f75e2f9247fca648078be15dae0524944 Mon Sep 17 00:00:00 2001 From: gracile-fr Date: Thu, 3 May 2012 22:16:24 +0200 Subject: [PATCH 1/3] Localization of strings previously hardcoded in itembox.xml (Move up/down) --- chrome/content/zotero/bindings/itembox.xml | 6 ++---- chrome/locale/en-US/zotero/zotero.properties | 3 +++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/chrome/content/zotero/bindings/itembox.xml b/chrome/content/zotero/bindings/itembox.xml index d04ea98268..7e5791f4db 100644 --- a/chrome/content/zotero/bindings/itembox.xml +++ b/chrome/content/zotero/bindings/itembox.xml @@ -497,9 +497,8 @@ moveDown.id = "zotero-creator-move-down"; moveUp.className = "zotero-creator-move"; moveDown.className = "zotero-creator-move"; - // TODO: localize - moveUp.setAttribute("label", "Move Up"); - moveDown.setAttribute("label", "Move Down"); + moveUp.setAttribute("label", Zotero.getString('pane.item.creator.moveUp')); + moveDown.setAttribute("label", Zotero.getString('pane.item.creator.moveDown')); this._creatorTypeMenu.appendChild(moveSep); this._creatorTypeMenu.appendChild(moveUp); this._creatorTypeMenu.appendChild(moveDown); @@ -817,7 +816,6 @@ var label = document.createElement('label'); label.id = 'more-creators-label'; - // TODO: localize label.setAttribute('value', num + " more…"); label.setAttribute('onclick', "var binding = document.getBindingParent(this); " diff --git a/chrome/locale/en-US/zotero/zotero.properties b/chrome/locale/en-US/zotero/zotero.properties index 93458d4767..982e1bc1e4 100644 --- a/chrome/locale/en-US/zotero/zotero.properties +++ b/chrome/locale/en-US/zotero/zotero.properties @@ -181,6 +181,9 @@ pane.item.defaultLastName = last pane.item.defaultFullName = full name pane.item.switchFieldMode.one = Switch to single field pane.item.switchFieldMode.two = Switch to two fields +pane.item.creator.moveUp = Move Up +pane.item.creator.moveDown = Move Down +pane.item.creators.displayMore = \u0020more… pane.item.notes.untitled = Untitled Note pane.item.notes.delete.confirm = Are you sure you want to delete this note? pane.item.notes.count.zero = %S notes: From d6ae1c544d461eba3b1d05fec13ca1600b4b840b Mon Sep 17 00:00:00 2001 From: gracile-fr Date: Thu, 3 May 2012 22:38:14 +0200 Subject: [PATCH 2/3] Localization of strings previously hardcoded. All these strings are related to duplicate detection. --- chrome/content/zotero/itemPane.xul | 7 ++----- chrome/content/zotero/xpcom/duplicates.js | 2 +- chrome/content/zotero/zoteroPane.js | 3 +-- chrome/content/zotero/zoteroPane.xul | 4 +--- chrome/locale/en-US/zotero/zotero.dtd | 4 ++++ chrome/locale/en-US/zotero/zotero.properties | 2 ++ 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/chrome/content/zotero/itemPane.xul b/chrome/content/zotero/itemPane.xul index 38af4e6456..9ccef42066 100644 --- a/chrome/content/zotero/itemPane.xul +++ b/chrome/content/zotero/itemPane.xul @@ -100,23 +100,20 @@ -