diff --git a/data/core.yaml b/data/core.yaml index 3c4d1420b..f02885a8f 100644 --- a/data/core.yaml +++ b/data/core.yaml @@ -634,6 +634,11 @@ en: anonymous: anonymous closed: "(Closed)" commentTitle: Comments + status: + opened: "opened {when}" + reopened: "reopened {when}" + commented: "commented {when}" + closed: "closed {when}" newComment: New Comment inputPlaceholder: Enter a comment to share with other users. close: Close Note diff --git a/dist/locales/en.json b/dist/locales/en.json index 2655f494c..ea2058f79 100644 --- a/dist/locales/en.json +++ b/dist/locales/en.json @@ -770,6 +770,12 @@ "anonymous": "anonymous", "closed": "(Closed)", "commentTitle": "Comments", + "status": { + "opened": "opened {when}", + "reopened": "reopened {when}", + "commented": "commented {when}", + "closed": "closed {when}" + }, "newComment": "New Comment", "inputPlaceholder": "Enter a comment to share with other users.", "close": "Close Note", diff --git a/modules/ui/note_comments.js b/modules/ui/note_comments.js index 87649782c..4534ea10b 100644 --- a/modules/ui/note_comments.js +++ b/modules/ui/note_comments.js @@ -61,7 +61,9 @@ export function uiNoteComments() { metadataEnter .append('div') .attr('class', 'comment-date') - .text(function(d) { return d.action + ' ' + localeDateString(d.date); }); + .text(function(d) { + return t('note.status.' + d.action, { when: localeDateString(d.date) }); + }); mainEnter .append('div')