提交 6b772c47 编写于 作者: R root

订单支付部分的中文翻译

上级 dc6d22f4
......@@ -183,7 +183,7 @@ return [
'Shipping Address' => '货运地址',
'T:' => '手机/电话:',
'Payment Method' => '支付方式',
'Shipping Method' => '货运地址',
'Shipping Method' => '货运方式',
'Items Ordered' => '订单产品列表',
'Product Name' => '产品名称',
'Product Image' => '产品图片',
......@@ -297,31 +297,42 @@ return [
'Your Cart is empty, You Can {urlB} Click Here to Home Page {urlE}'
=> '您的购物车为空,您可以{urlB}点击这里进入首页{urlE}',
'Unit Price' => '单价',
'Discount Codes' => '优惠券',
'Enter your coupon code if you have one.' => '如果您有优惠券,请在下面填写',
'Cancel Coupon' => '取消优惠券',
'Discount Codes' => '优惠券',
'Enter your coupon code if you have one.'
=> '如果您有优惠券,请在下面填写',
'Cancel Coupon' => '取消优惠券',
'Add Coupon' => '添加优惠券',
'Dashboard' => '我的信息中心',
'Dashboard' => '我的信息中心',
'OR' => '或',
'Proceed to Pay' => '继续支付',
'Follow' => '关注我们',
'Follow' => '关注我们',
'Follow' => '关注我们',
'Follow' => '关注我们',
'Follow' => '关注我们',
'Follow' => '关注我们',
'Follow' => '关注我们',
'Follow' => '关注我们',
'Follow' => '关注我们',
'Follow' => '关注我们',
'Follow' => '关注我们',
'Follow' => '关注我们',
'Follow' => '关注我们',
'Follow' => '关注我们',
'Follow' => '关注我们',
'Follow' => '关注我们',
'Follow' => '关注我们',
# 下单页面
'Checkout' => '支付',
'Welcome to the checkout,Fill in the fields below to complete your purchase'
=> '欢迎结帐,填写以下字段以完成购买',
'Already registered? Click here to login'
=> '已经注册? 点击此处登录',
'Coupon codes (optional)' => '优惠券代码(可选)',
'Place order now' => '支付订单',
'Please wait, processing your order...'
=> '正在处理您的订单,请稍候...',
'Create an account for later use'
=> '创建帐户以供以后使用',
'Billing address' => '帐单地址',
'Street' => '街道',
'New Address' => '新地址',
'Check / Money Order' => '现金支付',
'Off-line Money Payments' => '线下现金支付',
'PayPal Website Payments Standard'
=> '贝宝标准支付',
'You will be redirected to the PayPal website when you place an order. '
=> '当您下订单时,您将被重定向到PayPal网站。',
'Free shipping( 7-20 work days)'
=> '免邮费( 7-20 工作日)',
'Fast Shipping( 5-10 work days)'
=> '快速邮寄( 5-10 工作日)',
'Review your order' => '订单详细',
'Follow' => '关注我们',
'Follow' => '关注我们',
'Follow' => '关注我们',
......
......@@ -5,10 +5,9 @@
<form action="<?= Yii::$service->url->getUrl('checkout/onepage'); ?>" method="post" id="onestepcheckout-form">
<?= \fec\helpers\CRequest::getCsrfInputHtml(); ?>
<fieldset style="margin: 0;" class="group-select">
<h1 class="onestepcheckout-title">Checkout</h1>
<p class="onestepcheckout-description">Welcome to the checkout. Fill in the fields below to complete your purchase!</p>
<p class="onestepcheckout-description"><?= Yii::$service->page->translate->__('Welcome to the checkout,Fill in the fields below to complete your purchase');?> !</p>
<p class="onestepcheckout-login-link">
<a href="<?= Yii::$service->url->getUrl('customer/account/login'); ?>" id="onestepcheckout-login-link">Already registered? Click here to login.</a>
<a href="<?= Yii::$service->url->getUrl('customer/account/login'); ?>" id="onestepcheckout-login-link"><?= Yii::$service->page->translate->__('Already registered? Click here to login');?>.</a>
</p>
<div class="onestepcheckout-threecolumns checkoutcontainer onestepcheckout-skin-generic onestepcheckout-enterprise">
<div class="onestepcheckout-column-left">
......@@ -61,8 +60,8 @@
<div class="onestepcheckout-coupons">
<div style="display: none;" id="coupon-notice"></div>
<div class="op_block_title">Coupon codes (optional)</div>
<label for="id_couponcode">Enter your coupon code if you have one.</label>
<div class="op_block_title"><?= Yii::$service->page->translate->__('Coupon codes (optional)');?></div>
<label for="id_couponcode"><?= Yii::$service->page->translate->__('Enter your coupon code if you have one.');?></label>
<input type="hidden" class="couponType" value="<?= $cart_info['coupon_code'] ? 1 : 2 ; ?>" />
<input style="color:#777;" class="input-text" id="id_couponcode" name="coupon_code" value="<?= $cart_info['coupon_code']; ?>">
......@@ -90,8 +89,8 @@
</div>
<div class="onestepcheckout-place-order">
<a class="large orange onestepcheckout-button" href="javascript:void(0)" id="onestepcheckout-place-order">Place order now</a>
<div class="onestepcheckout-place-order-loading"><img src="<?= Yii::$service->image->getImgUrl('images/opc-ajax-loader.gif'); ?>">&nbsp;&nbsp;Please wait, processing your order...</div>
<a class="large orange onestepcheckout-button" href="javascript:void(0)" id="onestepcheckout-place-order"><?= Yii::$service->page->translate->__('Place order now');?></a>
<div class="onestepcheckout-place-order-loading"><img src="<?= Yii::$service->image->getImgUrl('images/opc-ajax-loader.gif'); ?>">&nbsp;&nbsp;<?= Yii::$service->page->translate->__('Please wait, processing your order...');?></div>
</div>
</div>
<div style="clear: both;">&nbsp;</div>
......
......@@ -7,7 +7,7 @@
<div id="billing_address">
<ul>
<li>
<p class="onestepcheckout-numbers onestepcheckout-numbers-1">Billing address</p>
<p class="onestepcheckout-numbers onestepcheckout-numbers-1"><?= Yii::$service->page->translate->__('Billing address');?></p>
</li>
<li>
<div>
......@@ -15,17 +15,17 @@
<ul id="billing_address_list" class="billing_address_list_new" style="">
<li class="clearfix">
<div class="input-box input-firstname">
<label for="billing:firstname">First Name<span class="required">*</span></label>
<label for="billing:firstname"><?= Yii::$service->page->translate->__('First Name');?><span class="required">*</span></label>
<input value="<?= $cart_address['first_name'] ?>" id="billing:firstname" name="billing[first_name]" class="required-entry input-text" type="text">
</div>
<div class="input-box input-lastname">
<label for="billing:lastname">Last Name <span class="required">*</span></label>
<label for="billing:lastname"><?= Yii::$service->page->translate->__('Last Name');?> <span class="required">*</span></label>
<input value="<?= $cart_address['last_name'] ?>" id="billing:lastname" name="billing[last_name]" class="required-entry input-text" type="text">
</div>
</li>
<li class="clearfix">
<div style="width:100%;" class=" input-box input-email">
<label for="billing:email">Email Address <span class="required">*</span></label>
<label for="billing:email"><?= Yii::$service->page->translate->__('Email Address');?> <span class="required">*</span></label>
<input style="width:83%;" value="<?= $cart_address['email'] ?>" class="validate-email required-entry input-text" title="Email Address" id="billing:email" name="billing[email]" type="text">
<div class="customer_email_validation">
......@@ -34,13 +34,13 @@
</li>
<li>
<div style="width:100%;" class="input-box input-telephone">
<label for="billing:telephone">Telephone <span class="required">*</span></label>
<label for="billing:telephone"><?= Yii::$service->page->translate->__('Telephone');?> <span class="required">*</span></label>
<input style="width:83%;" value="<?= $cart_address['telephone'] ?>" id="billing:telephone" class="required-entry input-text" title="Telephone" name="billing[telephone]" type="text">
</div>
</li>
<li class="clearfix">
<div class="input-box input-address">
<label for="billing:street1">Address<span class="required">*</span></label>
<label for="billing:street1"><?= Yii::$service->page->translate->__('Street');?><span class="required">*</span></label>
<input value="<?= $cart_address['street1'] ?>" class="required-entry input-text onestepcheckout-address-line" id="billing:street1" name="billing[street1]" title="Street Address 1" type="text">
<br>
<input value="<?= $cart_address['street2'] ?>" class="input-text onestepcheckout-address-line" id="billing:street2" name="billing[street2]" title="Street Address 2" type="text">
......@@ -48,7 +48,7 @@
</li>
<li class="clearfix">
<div class="input-box input-country">
<label for="billing:country">Country <span class="required">*</span></label>
<label for="billing:country"><?= Yii::$service->page->translate->__('Country');?> <span class="required">*</span></label>
<select title="Country" class="billing_country validate-select" id="billing:country" name="billing[country]">
<?= $country_select ?>
</select>
......@@ -57,13 +57,13 @@
<li class="clearfix">
<div class="input-box input-city">
<label for="billing:city">City <span class="required">*</span></label>
<label for="billing:city"><?= Yii::$service->page->translate->__('City');?> <span class="required">*</span></label>
<input value="<?= $cart_address['city'] ?>" id="billing:city" class="required-entry input-text" title="City" name="billing[city]" type="text">
</div>
</li>
<li class="clearfix">
<div class="input-box input-state"><label for="billing:state" class="required">State<span class="required">*</span></label>
<div class="input-box input-state"><label for="billing:state" class="required"><?= Yii::$service->page->translate->__('State');?><span class="required">*</span></label>
<div class="state_html">
<?= $state_html ?>
</div>
......@@ -71,7 +71,7 @@
</li>
<li class="clearfix">
<div class="input-box input-zip">
<label for="billing:zip">Zip Code <span class="required">*</span></label>
<label for="billing:zip"><?= Yii::$service->page->translate->__('Zip Code');?> <span class="required">*</span></label>
<input value="<?= $cart_address['zip'] ?>" class="validate-zip-international required-entry input-text" id="billing:zip" name="billing[zip]" title="Zip Code" type="text">
</div>
......@@ -86,7 +86,7 @@
<li class="clearfix">
<div class="input-box">
<input value="1" name="create_account" id="id_create_account" type="checkbox">
<label style="display:inline" for="id_create_account">Create an account for later use</label>
<label style="display:inline" for="id_create_account"><?= Yii::$service->page->translate->__('Create an account for later use');?></label>
</div>
<div class="label_create_account">
......@@ -94,11 +94,11 @@
</li>
<li style="display: none;" id="onestepcheckout-li-password">
<div class="input-box input-password">
<label for="billing:customer_password">Password</label><br>
<label for="billing:customer_password"><?= Yii::$service->page->translate->__('Password');?></label><br>
<input name="billing[customer_password]" id="billing:customer_password" title="Password" value="" class="validate-password input-text customer_password" type="password">
</div>
<div class="input-box input-password">
<label for="billing:confirm_password">Confirm password</label><br>
<label for="billing:confirm_password"><?= Yii::$service->page->translate->__('Confirm Password');?></label><br>
<input name="billing[confirm_password]" title="Confirm Password" id="billing:confirm_password" value="" class="validate-password input-text customer_confirm_password" type="password">
</div>
</li>
......
......@@ -7,7 +7,7 @@
<div id="billing_address">
<ul>
<li>
<p class="onestepcheckout-numbers onestepcheckout-numbers-1">Billing address</p>
<p class="onestepcheckout-numbers onestepcheckout-numbers-1"><?= Yii::$service->page->translate->__('Billing address');?></p>
</li>
<li>
<div>
......@@ -24,22 +24,22 @@
<?php } ?>
<?php } ?>
<option value=""> New Address </option>
<option value=""> <?= Yii::$service->page->translate->__('New Address');?> </option>
</select>
<ul id="billing_address_list" class="billing_address_list_new" style="display:none;">
<li class="clearfix">
<div class="input-box input-firstname">
<label for="billing:firstname">First Name<span class="required">*</span></label>
<label for="billing:firstname"><?= Yii::$service->page->translate->__('First Name');?><span class="required">*</span></label>
<input value="<?= $cart_address['first_name'] ?>" id="billing:firstname" name="billing[first_name]" class="required-entry input-text" type="text">
</div>
<div class="input-box input-lastname">
<label for="billing:lastname">Last Name <span class="required">*</span></label>
<label for="billing:lastname"><?= Yii::$service->page->translate->__('Last Name');?> <span class="required">*</span></label>
<input value="<?= $cart_address['last_name'] ?>" id="billing:lastname" name="billing[last_name]" class="required-entry input-text" type="text">
</div>
</li>
<li class="clearfix">
<div style="width:100%;" class=" input-box input-email">
<label for="billing:email">Email Address <span class="required">*</span></label>
<label for="billing:email"><?= Yii::$service->page->translate->__('Email Address');?> <span class="required">*</span></label>
<input style="width:83%;" value="<?= $cart_address['email'] ?>" class="validate-email required-entry input-text" title="Email Address" id="billing:email" name="billing[email]" type="text">
<div class="customer_email_validation">
......@@ -48,13 +48,13 @@
</li>
<li>
<div style="width:100%;" class="input-box input-telephone">
<label for="billing:telephone">Telephone <span class="required">*</span></label>
<label for="billing:telephone"><?= Yii::$service->page->translate->__('Telephone');?> <span class="required">*</span></label>
<input style="width:83%;" value="<?= $cart_address['telephone'] ?>" id="billing:telephone" class="required-entry input-text" title="Telephone" name="billing[telephone]" type="text">
</div>
</li>
<li class="clearfix">
<div class="input-box input-address">
<label for="billing:street1">Address<span class="required">*</span></label>
<label for="billing:street1"><?= Yii::$service->page->translate->__('Street');?><span class="required">*</span></label>
<input value="<?= $cart_address['street1'] ?>" class="required-entry input-text onestepcheckout-address-line" id="billing:street1" name="billing[street1]" title="Street Address 1" type="text">
<br>
<input value="<?= $cart_address['street2'] ?>" class="input-text onestepcheckout-address-line" id="billing:street2" name="billing[street2]" title="Street Address 2" type="text">
......@@ -62,7 +62,7 @@
</li>
<li class="clearfix">
<div class="input-box input-country">
<label for="billing:country">Country <span class="required">*</span></label>
<label for="billing:country"><?= Yii::$service->page->translate->__('Country');?> <span class="required">*</span></label>
<select title="Country" class="billing_country validate-select" id="billing:country" name="billing[country]">
<?= $country_select ?>
</select>
......@@ -70,16 +70,16 @@
</li>
<li class="clearfix">
<div class="input-box input-city">
<label for="billing:city">City <span class="required">*</span></label>
<label for="billing:city"><?= Yii::$service->page->translate->__('City');?> <span class="required">*</span></label>
<input value="<?= $cart_address['city'] ?>" id="billing:city" class="required-entry input-text" title="City" name="billing[city]" type="text">
</div>
</li>
<li class="clearfix">
<div class="input-box input-zip">
<label for="billing:zip">Zip Code <span class="required">*</span></label>
<label for="billing:zip"><?= Yii::$service->page->translate->__('Zip Code');?> <span class="required">*</span></label>
<input value="<?= $cart_address['zip'] ?>" class="validate-zip-international required-entry input-text" id="billing:zip" name="billing[zip]" title="Zip Code" type="text">
</div>
<div class="input-box input-state"><label for="billing:state" class="required">State <span class="required">*</span></label>
<div class="input-box input-state"><label for="billing:state" class="required"><?= Yii::$service->page->translate->__('State');?> <span class="required">*</span></label>
<div class="state_html">
<?= $state_html ?>
</div>
......
<?php $payments = $parentThis['payments']; ?>
<?php $current_payment_method = $parentThis['current_payment_method']; ?>
<div class="onestepcheckout-payment-method">
<p class="onestepcheckout-numbers onestepcheckout-numbers-3">Payment method</p>
<p class="onestepcheckout-numbers onestepcheckout-numbers-3"><?= Yii::$service->page->translate->__('Payment Method');?></p>
<div class="payment_info">
<div class="payment-methods">
<dl id="checkout-payment-method-load">
......@@ -17,7 +17,7 @@
?>
<dt>
<input <?= $checked; ?> style="display:inline" id="p_method_<?= $payment ?>" value="<?= $payment ?>" name="payment_method" title="<?= $info['label']; ?>" class="radio validate-one-required-by-name" <?= ($current_payment_method == $payment) ? 'checked="checked"' : '' ; ?> type="radio">
<label for="p_method_<?= $payment ?>"><?= $info['label'] ?></label>
<label for="p_method_<?= $payment ?>"><?= Yii::$service->page->translate->__($info['label']) ?></label>
</dt>
<dd id="container_payment_method_<?= $payment ?>" class="payment-method" style="">
<ul class="form-list" id="payment_form_<?= $payment ?>" style="">
......@@ -28,9 +28,7 @@
<?php } ?>
</li>
<li class="form-alt">
<?= $info['supplement'] ?>
</li>
<li class="form-alt"><?= Yii::$service->page->translate->__($info['supplement']) ?></li>
</ul>
</dd>
<?php } ?>
......
......@@ -5,15 +5,15 @@ use fecshop\app\appfront\helper\Format;
<?php $currency_info = $parentThis['currency_info']; ?>
<?php if(is_array( $cart_info) && !empty( $cart_info)){ ?>
<?php $products = $cart_info['products'] ?>
<p class="onestepcheckout-numbers onestepcheckout-numbers-4">Review your order</p>
<p class="onestepcheckout-numbers onestepcheckout-numbers-4"><?= Yii::$service->page->translate->__('Review your order') ?></p>
<div class="onestepcheckout-summary">
<table class="onestepcheckout-summary">
<thead>
<tr>
<th class="image"></th>
<th class="name">name</th>
<th class="qty">Qty</th>
<th class="total">Subtotal</th>
<th class="name"><?= Yii::$service->page->translate->__('Name') ?></th>
<th class="qty"><?= Yii::$service->page->translate->__('Qty') ?></th>
<th class="total"><?= Yii::$service->page->translate->__('Subtotal') ?></th>
</tr>
</thead>
<tbody>
......@@ -36,7 +36,7 @@ use fecshop\app\appfront\helper\Format;
<ul>
<?php foreach($product['custom_option_info'] as $label => $val){ ?>
<li><?= $label ?>:<?= $val ?> </li>
<li><?= Yii::$service->page->translate->__(ucwords($label).':') ?><?= Yii::$service->page->translate->__($val) ?> </li>
<?php } ?>
</ul>
......@@ -52,25 +52,25 @@ use fecshop\app\appfront\helper\Format;
<table class="onestepcheckout-totals">
<tbody>
<tr>
<td class="title">Subtotal</td>
<td class="title"><?= Yii::$service->page->translate->__('Subtotal') ?></td>
<td class="value">
<span class="price"><?= $currency_info['symbol']; ?><?= Format::price($cart_info['product_total']); ?></span>
</td>
</tr>
<tr>
<td class="title">Shipping</td>
<td class="title"><?= Yii::$service->page->translate->__('Shipping Cost') ?></td>
<td class="value">
<span class="price"><?= $currency_info['symbol']; ?><?= Format::price($cart_info['shipping_cost']); ?></span>
</td>
</tr>
<tr>
<td class="title">Discount</td>
<td class="title"><?= Yii::$service->page->translate->__('Discount') ?></td>
<td class="value">
<span class="price">-<?= $currency_info['symbol']; ?><?= Format::price($cart_info['coupon_cost']); ?></span>
</td>
</tr>
<tr class="grand-total">
<td class="title">Grand total</td>
<td class="title"><?= Yii::$service->page->translate->__('Grand Total') ?></td>
<td class="value">
<span class="price"><?= $currency_info['symbol']; ?><?= Format::price($cart_info['grand_total']) ?></span>
</td>
......
......@@ -3,14 +3,14 @@ use fecshop\app\appfront\helper\Format;
?>
<?php $shippings = $parentThis['shippings']; ?>
<div class="onestepcheckout-shipping-method">
<p class="onestepcheckout-numbers onestepcheckout-numbers-2">Shipping method</p>
<p class="onestepcheckout-numbers onestepcheckout-numbers-2"><?= Yii::$service->page->translate->__('Shipping Method') ?></p>
<div class="onestepcheckout-shipping-method-block">
<dl class="shipment-methods">
<?php if(!empty($shippings) && is_array($shippings)){ ?>
<?php foreach($shippings as $shipping){ ?>
<div class="shippingmethods">
<div class="flatrate"><?= $shipping['label'] ?></div>
<div class="flatrate"><?= Yii::$service->page->translate->__($shipping['label']) ?></div>
<div>
<input data-role="none" <?= $shipping['checked'] ? 'checked="checked"' : '' ?> type="radio" id="s_method_flatrate_flatrate<?= $shipping['shipping_i'] ?>" value="<?= $shipping['method'] ?>" class="validate-one-required-by-name" name="shipping_method">
<label for="s_method_flatrate_flatrate<?= $shipping['shipping_i'] ?>"><?= $shipping['name'] ?>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册