diff --git a/core/view/layout.jade b/core/view/layout.jade index 577c155..34b133b 100644 --- a/core/view/layout.jade +++ b/core/view/layout.jade @@ -24,10 +24,10 @@ html for hook in selectHook('view.layout.menu_bar') if hook.target li - a(href=hook.href, target=hook.target)= hook.body + a(href=hook.href, target=hook.target)= t(hook.t_body) else li - a(href=hook.href)= hook.body + a(href=hook.href)= t(hook.t_body) ul.nav.navbar-nav.navbar-right if account li diff --git a/plugin/linux/index.coffee b/plugin/linux/index.coffee index e9f5339..75cc043 100644 --- a/plugin/linux/index.coffee +++ b/plugin/linux/index.coffee @@ -8,7 +8,7 @@ module.exports = pluggable.createHelpers exports = exports.registerHook 'view.layout.menu_bar', href: '/public/monitor/' - body: '服务器状态' + t_body: 'plugins.linux.server_monitor' exports.registerHook 'account.username_filter', filter: (username, callback) -> diff --git a/plugin/linux/locale/zh_CN.json b/plugin/linux/locale/zh_CN.json index 3df4ed9..1b1f746 100644 --- a/plugin/linux/locale/zh_CN.json +++ b/plugin/linux/locale/zh_CN.json @@ -1,4 +1,5 @@ { "name": "Linux", + "server_monitor": "服务器状态", "description": "Linux 是 RP 主机的基础服务,负责进行资源限制" } diff --git a/plugin/rpvhost/index.coffee b/plugin/rpvhost/index.coffee index f965fbd..ea97874 100644 --- a/plugin/rpvhost/index.coffee +++ b/plugin/rpvhost/index.coffee @@ -11,7 +11,7 @@ module.exports = pluggable.createHelpers exports = exports.registerHook 'view.layout.menu_bar', href: '//blog.rpvhost.net' target: '_blank' - body: '官方博客' + t_body: 'plugins.rpvhost.official_blog' exports.registerHook 'billing.payment_methods', widget_generator: (req, callback) -> diff --git a/plugin/rpvhost/locale/zh_CN.json b/plugin/rpvhost/locale/zh_CN.json index 56fdbc5..9aecd06 100644 --- a/plugin/rpvhost/locale/zh_CN.json +++ b/plugin/rpvhost/locale/zh_CN.json @@ -1,6 +1,7 @@ { "site_name": "RP 主机", "taobao": "淘宝", + "official_blog": "官方博客", "view": { "payment_tips": "拍下对应宝贝后付款即可,购买时注意选择服务器节点选项,备注填写你的用户名。", "go_pay": "淘宝购买", diff --git a/plugin/wiki/index.coffee b/plugin/wiki/index.coffee index e389ec7..ccd8125 100644 --- a/plugin/wiki/index.coffee +++ b/plugin/wiki/index.coffee @@ -12,7 +12,7 @@ module.exports = pluggable.createHelpers exports = exports.registerHook 'view.layout.menu_bar', href: '/wiki/' - body: '用户手册' + t_body: 'plugins.wiki.' for category_name in fs.readdirSync("#{__dirname}/../../WIKI") for file_name in fs.readdirSync("#{__dirname}/../../WIKI/#{category_name}")