add translateions

This commit is contained in:
2015-11-21 20:36:46 +01:00
parent d1fa7e27cf
commit 07c2d4c36a
20 changed files with 118 additions and 36 deletions

View File

@@ -1,16 +1,11 @@
<?php
use frontend\components\ReceptionMenuWidget;
use frontend\components\ReceptionCardNumberWidget;
use yii\helpers\Html;
use common\models\Product;
use frontend\assets\ProductSellAsset;
use yii\helpers\Url;
use yii\bootstrap\ActiveForm;
use yii\helpers\ArrayHelper;
use common\models\Discount;
use frontend\components\ReceptionWidget;
use common\models\Account;
use common\models\Discount;
use frontend\assets\ProductSellAsset;
use frontend\components\ReceptionWidget;
use yii\bootstrap\ActiveForm;
use yii\helpers\Url;
/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
@@ -67,7 +62,19 @@ $this->params['breadcrumbs'][] = Yii::t('frontend/product', 'Sale');
.table-transfers tbody .product-name,
.table-transfers tbody .product-time
{
text-align: center;
text-align: left;
}
.table-transfers .product-time{
width: 140px;
}
.table-transfers .product-count{
width: 50px;
}
.table-transfers .sale-price{
width: 80px;
}
.table-transfers .product-money{
width: 100px;
}
</style>

View File

@@ -7,7 +7,7 @@
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
$this->title = 'Login';
$this->title = Yii::t('common/site' ,'Login');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="site-login">
@@ -26,11 +26,11 @@ $this->params['breadcrumbs'][] = $this->title;
<?= $form->field($model, 'rememberMe')->checkbox() ?>
<div style="color:#999;margin:1em 0">
If you forgot your password you can <?= Html::a('reset it', ['site/request-password-reset']) ?>.
<?= Html::a(Yii::t('common/site' ,'Forgot password'), ['site/request-password-reset']) ?>.
</div>
<div class="form-group">
<?= Html::submitButton('Login', ['class' => 'btn btn-primary', 'name' => 'login-button']) ?>
<?= Html::submitButton(Yii::t('common/site' ,'Login'), ['class' => 'btn btn-primary', 'name' => 'login-button']) ?>
</div>
<?php ActiveForm::end(); ?>

View File

@@ -7,13 +7,13 @@
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
$this->title = 'Request password reset';
$this->title = Yii::t('common/site' ,'Request password reset');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="site-request-password-reset">
<h1><?= Html::encode($this->title) ?></h1>
<p>Please fill out your email. A link to reset password will be sent there.</p>
<p><?php echo Yii::t('common/site' ,'Please fill out your email. A link to reset password will be sent there.') ?></p>
<div class="row">
<div class="col-lg-5">
@@ -22,7 +22,7 @@ $this->params['breadcrumbs'][] = $this->title;
<?= $form->field($model, 'email') ?>
<div class="form-group">
<?= Html::submitButton('Send', ['class' => 'btn btn-primary']) ?>
<?= Html::submitButton( Yii::t('common/site' ,'Send'), ['class' => 'btn btn-primary']) ?>
</div>
<?php ActiveForm::end(); ?>

View File

@@ -7,13 +7,13 @@
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
$this->title = 'Reset password';
$this->title = Yii::t('common/site' ,'Reset password');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="site-reset-password">
<h1><?= Html::encode($this->title) ?></h1>
<p>Please choose your new password:</p>
<p><?php echo Yii::t('common/site' ,'Please choose your new password:') ?></p>
<div class="row">
<div class="col-lg-5">