Add I18n support for "The topic has been deleted" message

This commit is contained in:
tangramor 2013-03-21 00:10:41 +08:00
parent 841bf3f064
commit dc7b690921
4 changed files with 4 additions and 1 deletions

View File

@ -211,7 +211,7 @@ Discourse.TopicController = Discourse.ObjectController.extend({
var _this = this;
this.unsubscribe();
this.get('content')["delete"](function() {
_this.set('message', "The topic has been deleted");
_this.set('message', Em.String.i18n('topic.deleted'));
_this.set('loaded', false);
});
},

View File

@ -416,6 +416,7 @@ en:
read_position_reset: "Your read position has been reset."
jump_reply_up: jump to earlier reply
jump_reply_down: jump to later reply
deleted: "The topic has been deleted"
progress:
title: topic progress

View File

@ -422,6 +422,7 @@ zh_CN:
read_position_reset: "你的阅读位置已经被重置。"
jump_reply_up: 跳转至更早的回复
jump_reply_down: 跳转至更晚的回复
deleted: "此主题已被删除"
progress:
title: 主题进度

View File

@ -422,6 +422,7 @@ zh_TW:
read_position_reset: "你的閱讀位置已經被重置。"
jump_reply_up: 跳轉至更早的回複
jump_reply_down: 跳轉至更晚的回複
deleted: "此主題已被刪除"
progress:
title: 主題進度