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:

View file

@ -516,6 +516,7 @@ cs:
reply: "Odpovídáte na {{link}} od {{replyAvatar}} {{username}}"
reply_topic: "Odpověď na {{link}}"
edit: "Editovat {{link}}"
post_number: "příspěvek č. {{number}}"
in_reply_to: "v odpovědi na"
reply_as_new_topic: "Odpovědět jako nové téma"
continue_discussion: "Pokračující diskuze z {{postLink}}:"

View file

@ -516,6 +516,7 @@ en:
reply: "Replying to {{link}} by {{replyAvatar}} {{username}}"
reply_topic: "Reply to {{link}}"
edit: "Edit {{link}}"
post_number: "post {{number}}"
in_reply_to: "in reply to"
reply_as_new_topic: "Reply as new Topic"
continue_discussion: "Continuing the discussion from {{postLink}}:"