diff --git a/chrome/content/zotero/about.xul b/chrome/content/zotero/about.xul
index adca886dda..7f06013e23 100644
--- a/chrome/content/zotero/about.xul
+++ b/chrome/content/zotero/about.xul
@@ -51,7 +51,7 @@
-
+
diff --git a/chrome/content/zotero/bindings/attachmentbox.xml b/chrome/content/zotero/bindings/attachmentbox.xml
index a2cedddc70..a6f902cf1b 100644
--- a/chrome/content/zotero/bindings/attachmentbox.xml
+++ b/chrome/content/zotero/bindings/attachmentbox.xml
@@ -214,7 +214,8 @@
// Access date
if (this.displayAccessed) {
- this._id("accessed-label").value = Zotero.getString('itemFields.accessDate')+":";
+ this._id("accessed-label").value = Zotero.getString('itemFields.accessDate')
+ + Zotero.getString('punctuation.colon');
this._id("accessed").value = Zotero.Date.sqlToDate(
this.item.getField('accessDate'), true
).toLocaleString();
@@ -233,12 +234,11 @@
if (this.item.attachmentLinkMode
!= Zotero.Attachments.LINK_MODE_LINKED_URL
&& this.displayFileName) {
- // TODO: localize
var fileName = this.item.getFilename();
if (fileName) {
- // TODO: localize
- this._id("fileName-label").value = "Filename:";
+ this._id("fileName-label").value = Zotero.getString('pane.item.attachments.filename')
+ + Zotero.getString('punctuation.colon');
this._id("fileName").value = fileName;
fileNameRow.hidden = false;
}
@@ -255,8 +255,8 @@
var pages = Zotero.Fulltext.getPages(this.item.id);
var pages = pages ? pages.total : null;
if (pages) {
- // TODO: localize colon
- this._id("pages-label").value = Zotero.getString('itemFields.pages') + ':';
+ this._id("pages-label").value = Zotero.getString('itemFields.pages')
+ + Zotero.getString('punctuation.colon');
this._id("pages").value = pages;
pagesRow.hidden = false;
}
@@ -269,7 +269,8 @@
}
if (this.displayDateModified) {
- this._id("dateModified-label").value = Zotero.getString('itemFields.dateModified')+':';
+ this._id("dateModified-label").value = Zotero.getString('itemFields.dateModified')
+ + Zotero.getString('punctuation.colon');
var mtime = this.item.attachmentModificationTime;
if (mtime) {
this._id("dateModified").value = new Date(mtime).toLocaleString();
@@ -476,7 +477,8 @@
str = 'general.yes';
break;
}
- this._id("index-status-label").value = Zotero.getString('fulltext.indexState.indexed') + ':';
+ this._id("index-status-label").value = Zotero.getString('fulltext.indexState.indexed')
+ + Zotero.getString('punctuation.colon');
indexStatus.value = Zotero.getString(str);
// Reindex button tooltip (string stored in zotero.properties)
diff --git a/chrome/content/zotero/bindings/itembox.xml b/chrome/content/zotero/bindings/itembox.xml
index c4468a03c7..15cfe3bc68 100644
--- a/chrome/content/zotero/bindings/itembox.xml
+++ b/chrome/content/zotero/bindings/itembox.xml
@@ -256,8 +256,7 @@
10
0
1000
- 0
- 0
+ 0
@@ -364,7 +363,7 @@
// Start tabindex at 1001 after creators
var tabindex = fieldIsClickable
? (i>0 ? this._tabIndexMinFields + i : 1) : 0;
- this._tabIndexMaxInfoFields = Math.max(this._tabIndexMaxInfoFields, tabindex);
+ this._tabIndexMaxFields = Math.max(this._tabIndexMaxFields, tabindex);
if (fieldIsClickable
&& !Zotero.Items.isPrimaryField(fieldName)
@@ -568,7 +567,7 @@
// Move to next or previous field if (shift-)tab was pressed
if (this._lastTabIndex && this._tabDirection)
{
- this._focusNextField('info', this._dynamicFields, this._lastTabIndex, this._tabDirection == -1);
+ this._focusNextField(this._dynamicFields, this._lastTabIndex, this._tabDirection == -1);
}
]]>
+
+
+
+
@@ -2260,14 +2171,9 @@
-
@@ -2282,7 +2188,6 @@
completes, so it doesn't know where it's supposed to go next.)
-->
-
@@ -2292,102 +2197,59 @@
if (back)
{
- if (mode=='info')
+ switch (tabindex)
{
- switch (tabindex)
- {
- case 1:
- //Zotero.debug('At beginning');
- document.getElementById('item-type-menu').focus();
- return false;
-
- case this._tabIndexMinCreators:
+ case 1:
+ //Zotero.debug('At beginning');
+ document.getElementById('item-type-menu').focus();
+ return false;
+
+ case this._tabIndexMinCreators:
+ var nextIndex = 1; // Title field
+ break;
+
+ case this._tabIndexMinFields:
+ // No creators
+ if (this._tabIndexMaxCreators == 0) {
var nextIndex = 1; // Title field
- break;
-
- case this._tabIndexMinFields:
- // No creators
- if (this._tabIndexMaxCreators == 0) {
- var nextIndex = 1; // Title field
- }
- else {
- var nextIndex = this._tabIndexMaxCreators;
- }
- break;
-
- default:
- var nextIndex = tabindex - 1;
- }
- }
- else if (mode=='tags')
- {
- switch (tabindex)
- {
- case 1:
- return false;
-
- default:
- var nextIndex = tabindex - 1;
- }
+ }
+ else {
+ var nextIndex = this._tabIndexMaxCreators;
+ }
+ break;
+
+ default:
+ var nextIndex = tabindex - 1;
}
}
else
{
- if (mode=='info')
+ switch (tabindex)
{
- switch (tabindex)
- {
- case 1:
- var nextIndex = this._tabIndexMinCreators;
- break;
-
- case this._tabIndexMaxCreators:
- var nextIndex = this._tabIndexMinFields;
- break;
-
- case this._tabIndexMaxInfoFields:
- //Zotero.debug('At end');
- return false;
-
- default:
- var nextIndex = tabindex + 1;
- }
- }
- else if (mode=='tags')
- {
- switch (tabindex)
- {
- case this._tabIndexMaxTagsFields:
- // In tags box, keep going to create new row
- var nextIndex = tabindex + 1;
- break;
-
- default:
- var nextIndex = tabindex + 1;
- }
+ case 1:
+ var nextIndex = this._tabIndexMinCreators;
+ break;
+
+ case this._tabIndexMaxCreators:
+ var nextIndex = this._tabIndexMinFields;
+ break;
+
+ case this._tabIndexMaxFields:
+ //Zotero.debug('At end');
+ return false;
+
+ default:
+ var nextIndex = tabindex + 1;
}
}
Zotero.debug('Looking for tabindex ' + nextIndex, 4);
- switch (mode)
+
+ var next = box.getElementsByAttribute('ztabindex', nextIndex);
+ if (!next[0])
{
- case 'info':
- var next = box.getElementsByAttribute('ztabindex', nextIndex);
- if (!next[0])
- {
- //Zotero.debug("Next field not found");
- return this._focusNextField(mode, box, nextIndex, back);
- }
- break;
-
- // Tags pane
- case 'tags':
- var next = document.getAnonymousNodes(box)[0].
- getElementsByAttribute('ztabindex', nextIndex);
- if (!next[0]) {
- next[0] = box.addDynamicRow();
- }
- break;
+ //Zotero.debug("Next field not found");
+ return this._focusNextField(box, nextIndex, back);
}
next[0].click();
@@ -2481,7 +2343,21 @@
oncommand="document.getBindingParent(this).textTransform(document.popupNode, 'sentence')"/>
-
+
+
diff --git a/chrome/content/zotero/bindings/merge.xml b/chrome/content/zotero/bindings/merge.xml
index b2dcdb3be1..220b0d3197 100644
--- a/chrome/content/zotero/bindings/merge.xml
+++ b/chrome/content/zotero/bindings/merge.xml
@@ -358,7 +358,7 @@
case 'attachment':
case 'note':
case 'storagefile':
- objbox.buttonCaption = 'Choose this version';
+ objbox.buttonCaption = Zotero.getString('sync.conflict.chooseThisVersion');
break;
}
@@ -478,7 +478,7 @@
-
+
diff --git a/chrome/content/zotero/bindings/noteeditor.xml b/chrome/content/zotero/bindings/noteeditor.xml
index b9377ad186..61dee77bdd 100644
--- a/chrome/content/zotero/bindings/noteeditor.xml
+++ b/chrome/content/zotero/bindings/noteeditor.xml
@@ -410,14 +410,14 @@
@@ -446,7 +446,8 @@
v = "[" + Zotero.getString('pane.item.noteEditor.clickHere') + "]";
}
- this.id('seeAlsoLabel').value = Zotero.getString('pane.item.related');
+ this.id('seeAlsoLabel').value = Zotero.getString('itemFields.related')
+ + Zotero.getString('punctuation.colon');
this.id('seeAlsoClick').value = v;
]]>