mirror of
https://github.com/discourse/discourse.git
synced 2025-04-01 16:15:46 +08:00
extract hardcoded "post {{number}}" into locale strings
This commit is contained in:
parent
9db0ddeeac
commit
ac47c36f8b
@ -106,7 +106,8 @@ Discourse.Composer = Discourse.Model.extend({
|
|||||||
topic = this.get('topic');
|
topic = this.get('topic');
|
||||||
postNumber = this.get('post.post_number');
|
postNumber = this.get('post.post_number');
|
||||||
if (topic) {
|
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')) {
|
switch (this.get('action')) {
|
||||||
case PRIVATE_MESSAGE:
|
case PRIVATE_MESSAGE:
|
||||||
|
@ -516,6 +516,7 @@ cs:
|
|||||||
reply: "Odpovídáte na {{link}} od {{replyAvatar}} {{username}}"
|
reply: "Odpovídáte na {{link}} od {{replyAvatar}} {{username}}"
|
||||||
reply_topic: "Odpověď na {{link}}"
|
reply_topic: "Odpověď na {{link}}"
|
||||||
edit: "Editovat {{link}}"
|
edit: "Editovat {{link}}"
|
||||||
|
post_number: "příspěvek č. {{number}}"
|
||||||
in_reply_to: "v odpovědi na"
|
in_reply_to: "v odpovědi na"
|
||||||
reply_as_new_topic: "Odpovědět jako nové téma"
|
reply_as_new_topic: "Odpovědět jako nové téma"
|
||||||
continue_discussion: "Pokračující diskuze z {{postLink}}:"
|
continue_discussion: "Pokračující diskuze z {{postLink}}:"
|
||||||
|
@ -516,6 +516,7 @@ en:
|
|||||||
reply: "Replying to {{link}} by {{replyAvatar}} {{username}}"
|
reply: "Replying to {{link}} by {{replyAvatar}} {{username}}"
|
||||||
reply_topic: "Reply to {{link}}"
|
reply_topic: "Reply to {{link}}"
|
||||||
edit: "Edit {{link}}"
|
edit: "Edit {{link}}"
|
||||||
|
post_number: "post {{number}}"
|
||||||
in_reply_to: "in reply to"
|
in_reply_to: "in reply to"
|
||||||
reply_as_new_topic: "Reply as new Topic"
|
reply_as_new_topic: "Reply as new Topic"
|
||||||
continue_discussion: "Continuing the discussion from {{postLink}}:"
|
continue_discussion: "Continuing the discussion from {{postLink}}:"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user