use translation key for comment error

pull/1/head
David Benqué 5 years ago
parent 4037270a23
commit 0eb89871cf

@ -376,8 +376,7 @@ define([
return;
}
var author = typeof(msg.u) === "number" ?
((Env.comments.authors || {})[msg.u] || {}) :
{ name: msg.u };
((Env.comments.authors || {})[msg.u] || {}) : { name: msg.u };
var name = Util.fixHTML(author.name || Messages.anonymous);
var date = new Date(msg.t);
var avatar = h('span.cp-avatar');
@ -786,7 +785,7 @@ define([
// Abort if our selection contains a comment
console.error("Can't add a comment here");
// XXX show error
UI.warn(Messages.error);
UI.warn(Messages.comments_error);
return;
}

Loading…
Cancel
Save