Remove colon from "[n] notes:" line at top of notes panes
This commit is contained in:
parent
ed406ec118
commit
a1655e5643
3 changed files with 4 additions and 22 deletions
|
@ -473,8 +473,7 @@ var ZoteroContextPane = new function () {
|
|||
}));
|
||||
|
||||
var c = notes.length;
|
||||
var str = 'pane.item.notes.count.' + (c == 0 && 'zero' || c == 1 && 'singular' || 'plural');
|
||||
label.value = Zotero.getString(str, [c]);
|
||||
label.value = Zotero.getString('pane.item.notes.count', c, c);
|
||||
}
|
||||
|
||||
ReactDOM.render(
|
||||
|
@ -793,8 +792,7 @@ var ZoteroContextPane = new function () {
|
|||
_removeNote(id);
|
||||
});
|
||||
var c = parentNotes.length;
|
||||
var str = 'pane.item.notes.count.' + (c == 0 && 'zero' || c == 1 && 'singular' || 'plural');
|
||||
label.value = Zotero.getString(str, [c]);
|
||||
label.value = Zotero.getString('pane.item.notes.count', c, c);
|
||||
}
|
||||
|
||||
context.update = Zotero.Utilities.throttle(_renderNotesPanel, 500);
|
||||
|
|
|
@ -457,21 +457,7 @@ var ZoteroItemPane = new function() {
|
|||
|
||||
function _updateNoteCount() {
|
||||
var c = _notesList.childNodes.length;
|
||||
|
||||
var str = 'pane.item.notes.count.';
|
||||
switch (c){
|
||||
case 0:
|
||||
str += 'zero';
|
||||
break;
|
||||
case 1:
|
||||
str += 'singular';
|
||||
break;
|
||||
default:
|
||||
str += 'plural';
|
||||
break;
|
||||
}
|
||||
|
||||
_notesLabel.value = Zotero.getString(str, [c]);
|
||||
_notesLabel.value = Zotero.getString('pane.item.notes.count', c, c);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -368,9 +368,7 @@ pane.item.creator.moveDown = Move Down
|
|||
pane.item.notes.allNotes = All Notes
|
||||
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:
|
||||
pane.item.notes.count.singular = %S note:
|
||||
pane.item.notes.count.plural = %S notes:
|
||||
pane.item.notes.count = %1$S note;%1$S notes
|
||||
pane.item.notes.editingInWindow = Editing in separate window
|
||||
pane.item.attachments.rename.title = New title:
|
||||
pane.item.attachments.rename.renameAssociatedFile = Rename associated file
|
||||
|
|
Loading…
Reference in a new issue