view.layout.menu_bar i18n

This commit is contained in:
jysperm
2014-10-10 09:27:00 +08:00
parent 2905f6f082
commit 2710a02f6c
6 changed files with 7 additions and 5 deletions

View File

@@ -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

View File

@@ -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) ->

View File

@@ -1,4 +1,5 @@
{
"name": "Linux",
"server_monitor": "服务器状态",
"description": "Linux 是 RP 主机的基础服务,负责进行资源限制"
}

View File

@@ -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) ->

View File

@@ -1,6 +1,7 @@
{
"site_name": "RP 主机",
"taobao": "淘宝",
"official_blog": "官方博客",
"view": {
"payment_tips": "拍下对应宝贝后付款即可,购买时注意选择服务器节点选项,备注填写你的用户名。",
"go_pay": "淘宝购买",

View File

@@ -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}")