rpvhost i18n

This commit is contained in:
jysperm
2014-10-07 04:03:27 +08:00
parent 53eddd4866
commit af3949dedd
7 changed files with 21 additions and 10 deletions

View File

@@ -40,7 +40,6 @@ exports.get '/pay', requireAuthenticate, renderAccount, (req, res) ->
callback()
, ->
console.log deposit_logs
callback null, deposit_logs
billing_log: (callback) ->

View File

@@ -1,5 +1,5 @@
div
h2= t('plugins.bitcoin.')
p= t('plugins.bitcoin.view.payment_tips')
p= t('plugins.bitcoin.view.exchange_rate_tips', {rate10: (exchange_rate * 10).toFixed(4)})
h2= account.t('plugins.bitcoin.')
p= account.t('plugins.bitcoin.view.payment_tips')
p= account.t('plugins.bitcoin.view.exchange_rate_tips', {rate10: (exchange_rate * 10).toFixed(4)})
pre= account.pluggable.bitcoin.bitcoin_deposit_address

View File

@@ -21,5 +21,11 @@ exports.registerHook 'billing.payment_methods',
, (err, html) ->
callback html
exports.registerHook 'view.pay.display_payment_details',
type: 'taobao'
filter: (account, deposit_log, callback) ->
callback account.t 'plugins.rpvhost.view.payment_details',
order_id: deposit_log.payload.order_id
app.get '/', renderAccount, (req, res) ->
res.render path.join(__dirname, './view/index')

View File

@@ -1,3 +1,9 @@
{
"site_name": "RP 主机"
"site_name": "RP 主机",
"taobao": "淘宝",
"view": {
"payment_tips": "拍下对应宝贝后付款即可,购买时注意选择服务器节点选项,备注填写你的用户名。",
"go_pay": "淘宝购买",
"payment_details": "淘宝支付,订单号 __order_id__"
}
}

View File

@@ -1,4 +1,4 @@
div
h2 淘宝
p 拍下对应宝贝后付款即可,购买时注意选择服务器节点选项,备注填写你的用户名。
a.btn.btn-success(href='http://item.taobao.com/item.htm?id=#{config.plugins.rpvhost.taobao_item_id}') 淘宝购买
h2= account.t('plugins.rpvhost.taobao')
p= account.t('plugins.rpvhost.view.payment_tips')
a.btn.btn-success(href='http://item.taobao.com/item.htm?id=#{config.plugins.rpvhost.taobao_item_id}')= account.t('plugins.rpvhost.view.go_pay')

View File

@@ -1,3 +1,3 @@
{
"": "用户手册"
}

View File

@@ -1,7 +1,7 @@
extends ../../../core/view/layout
prepend header
title 用户手册 | #{config.web.name}
title account.t('plugins.wiki.') | #{config.web.name}
block main
for category in category_list