mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-01-13 07:01:20 +08:00
rpvhost i18n
This commit is contained in:
@@ -40,7 +40,6 @@ exports.get '/pay', requireAuthenticate, renderAccount, (req, res) ->
|
||||
callback()
|
||||
|
||||
, ->
|
||||
console.log deposit_logs
|
||||
callback null, deposit_logs
|
||||
|
||||
billing_log: (callback) ->
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
{
|
||||
"site_name": "RP 主机"
|
||||
"site_name": "RP 主机",
|
||||
"taobao": "淘宝",
|
||||
"view": {
|
||||
"payment_tips": "拍下对应宝贝后付款即可,购买时注意选择服务器节点选项,备注填写你的用户名。",
|
||||
"go_pay": "淘宝购买",
|
||||
"payment_details": "淘宝支付,订单号 __order_id__"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
|
||||
"": "用户手册"
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user