extract hardcoded "post {{number}}" into locale strings

This commit is contained in:
Kuba Brecka
2013-03-12 14:41:27 +01:00
parent 9db0ddeeac
commit ac47c36f8b
3 changed files with 4 additions and 1 deletions

View File

@@ -106,7 +106,8 @@ Discourse.Composer = Discourse.Model.extend({
topic = this.get('topic');
postNumber = this.get('post.post_number');
if (topic) {
postLink = "<a href='" + (topic.get('url')) + "/" + postNumber + "'>post " + postNumber + "</a>";
postLink = "<a href='" + (topic.get('url')) + "/" + postNumber + "'>" +
Em.String.i18n("post.post_number", { number: postNumber }) + "</a>";
}
switch (this.get('action')) {
case PRIVATE_MESSAGE: