From 12fc2eadc06c6570b8626a1dae2dcae654c1c24e Mon Sep 17 00:00:00 2001 From: gracile-fr Date: Thu, 3 May 2012 22:16:24 +0200 Subject: [PATCH] Localization of strings previously hardcoded in itembox.xml (Move up/down) (cherry picked from commit acb7c22f75e2f9247fca648078be15dae0524944) --- 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 705d03f99..d5547fec4 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 d634070c3..6f5df5de6 100644 --- a/chrome/locale/en-US/zotero/zotero.properties +++ b/chrome/locale/en-US/zotero/zotero.properties @@ -178,6 +178,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: