diff --git a/client/coral-plugin-commentbox/CommentBox.js b/client/coral-plugin-commentbox/CommentBox.js index 0018c6866..9032ad328 100644 --- a/client/coral-plugin-commentbox/CommentBox.js +++ b/client/coral-plugin-commentbox/CommentBox.js @@ -40,7 +40,7 @@ class CommentBox extends Component { postItem(comment, 'comments') .then((comment_id) => { if (premod === 'pre') { - addNotification('success', 'Your comment has been posted and is being reviewed by our moderation team.'); + addNotification('success', lang.t('comment-post-notif-premod')); } else { appendItemArray(parent_id || id, related, comment_id, !parent_id, parent_type); addNotification('success', 'Your comment has been posted.'); @@ -60,7 +60,7 @@ class CommentBox extends Component { style={styles && styles.textarea} value={this.state.username} id={reply ? 'replyUser' : 'commentUser'} - placeholder='Name' + placeholder={lang.t('name')} onChange={(e) => this.setState({username: e.target.value})}/>
this.setState({body: e.target.value})} rows={3}/> diff --git a/client/coral-plugin-commentbox/translations.json b/client/coral-plugin-commentbox/translations.json index 7e68b44b5..e8eb8ad52 100644 --- a/client/coral-plugin-commentbox/translations.json +++ b/client/coral-plugin-commentbox/translations.json @@ -3,12 +3,16 @@ "post": "Post", "reply": "Reply", "comment": "Comment", - "comment-post-notif": "Your comment has been posted." + "name": "Name", + "comment-post-notif": "Your comment has been posted.", + "comment-post-notif-premod": "Thank you for reporting this comment. Our moderation team has been notified and will review it shortly." }, "es": { "post": "Publicar", "reply": "Respuesta", "comment": "Comentario", - "comment-post-notif": "¡traduceme!" + "name": "Nombre", + "comment-post-notif": "¡traduceme!", + "comment-post-notif-premod": "¡traduceme!" } }