add account state translations
This commit is contained in:
parent
9145f21371
commit
5be26aa108
28
common/messages/hu/backend/account-state.php
Normal file
28
common/messages/hu/backend/account-state.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'Account States' => 'Kassza művelet',
|
||||
'Are you sure you want to delete this item?' => 'Biztosan törölni szeretné ezt a műveletet?',
|
||||
'Create' => 'Mentés',
|
||||
'Create Account State' => 'Új kassza művelet',
|
||||
'Delete' => 'Törlés',
|
||||
'Search' => 'Keresés',
|
||||
'Update' => 'Módosítás',
|
||||
'Update {modelClass}: ' => '{modelClass} módosítása:',
|
||||
];
|
||||
22
common/messages/hu/common/account-state.php
Normal file
22
common/messages/hu/common/account-state.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'Close' => 'Nyitás',
|
||||
'Open' => 'Zárás',
|
||||
];
|
||||
40
common/messages/hu/common/account_state.php
Normal file
40
common/messages/hu/common/account_state.php
Normal file
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'Banknote 10 Ft' => '10 Ft',
|
||||
'Banknote 100 Ft' => '100 Ft',
|
||||
'Banknote 1000 Ft' => '1 000 Ft',
|
||||
'Banknote 10000 Ft' => '10 000 Ft',
|
||||
'Banknote 20 Ft' => '20 Ft',
|
||||
'Banknote 200 Ft' => '200 Ft',
|
||||
'Banknote 2000 Ft' => '2 000 Ft',
|
||||
'Banknote 20000 Ft' => '20 000 Ft',
|
||||
'Banknote 5 Ft' => '5 Ft',
|
||||
'Banknote 50 Ft' => '50 Ft',
|
||||
'Banknote 500 Ft' => '500 Ft',
|
||||
'Banknote 5000 Ft' => '5 000Ft',
|
||||
'Comment' => 'Megjegyzés',
|
||||
'Created At' => 'Létrehozás ideje',
|
||||
'Id Account' => 'Kassza',
|
||||
'Id Account State' => 'Kassza művelet',
|
||||
'Id User' => 'Felhasználó',
|
||||
'Money' => 'Összeg',
|
||||
'Type' => 'Típus',
|
||||
'Updated At' => 'Módosítás ideje',
|
||||
];
|
||||
23
common/messages/hu/common/user-account-assignment.php
Normal file
23
common/messages/hu/common/user-account-assignment.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'Id Account' => 'Kassza',
|
||||
'Id User' => 'Felhasználó',
|
||||
'Id User Account Assignment' => 'Felhasználó - kassza hozzárendelés',
|
||||
];
|
||||
39
common/messages/hu/frontend/account-state.php
Normal file
39
common/messages/hu/frontend/account-state.php
Normal file
@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'Account states' => 'Kassza műveletek',
|
||||
'Close account state' => 'Kassza zárás',
|
||||
'Open account state' => 'Kassza nyitás',
|
||||
'Account States' => 'Kassza műveletek',
|
||||
'Are you sure you want to delete this item?' => 'Biztosan törölni szereté ezt a műveletet?',
|
||||
'Close Account State' => 'Kassza Zárás',
|
||||
'Close account' => 'Kassza zárás',
|
||||
'Create' => 'Mentés',
|
||||
'Create Account State' => 'Új kassza művelet',
|
||||
'Delete' => 'Törlés',
|
||||
'Difference closing money' => 'Záró összeg különbözet',
|
||||
'Difference total' => 'Összeg különbözet',
|
||||
'Last closing money' => 'Útolsó záró összeg',
|
||||
'Notes total' => 'Címletek összesen',
|
||||
'Open Account State' => 'Kassza nyitás',
|
||||
'Reset' => 'Reset',
|
||||
'Search' => 'Keresés',
|
||||
'Update' => 'Módosítás',
|
||||
'Update {modelClass}: ' => '{modelClass} módosítása:',
|
||||
];
|
||||
@ -64,7 +64,9 @@ class AccountState extends \common\models\BaseFitnessActiveRecord
|
||||
return [
|
||||
'id_account_state' => Yii::t('common/account_state', 'Id Account State'),
|
||||
'id_account' => Yii::t('common/account_state', 'Id Account'),
|
||||
'accountName' => Yii::t('common/account_state', 'Id Account'),
|
||||
'type' => Yii::t('common/account_state', 'Type'),
|
||||
'typeName' => Yii::t('common/account_state', 'Type'),
|
||||
'money' => Yii::t('common/account_state', 'Money'),
|
||||
'banknote_5_ft' => Yii::t('common/account_state', 'Banknote 5 Ft'),
|
||||
'banknote_10_ft' => Yii::t('common/account_state', 'Banknote 10 Ft'),
|
||||
|
||||
@ -32,9 +32,9 @@ class FrontendMenuStructure{
|
||||
$this->menuItems[] = ['label' => 'Recepcio', 'url' => ['/customer/reception'] ];
|
||||
$this->menuItems[] = ['label' => 'Kassza',
|
||||
'items' => [
|
||||
['label' => 'Account states', 'url' => ['/account-state/index'] ],
|
||||
['label' => 'Open account state', 'url' => ['/account-state/open'] ],
|
||||
['label' => 'Close account state', 'url' => ['/account-state/close'] ],
|
||||
['label' => Yii::t('frontend/account-state', 'Account states'), 'url' => ['/account-state/index'] ],
|
||||
['label' => Yii::t('frontend/account-state','Open account state'), 'url' => ['/account-state/open'] ],
|
||||
['label' => Yii::t('frontend/account-state','Close account state'), 'url' => ['/account-state/close'] ],
|
||||
]
|
||||
|
||||
];
|
||||
|
||||
@ -18,10 +18,16 @@ class AccountStateController extends Controller
|
||||
public function behaviors()
|
||||
{
|
||||
return [
|
||||
'verbs' => [
|
||||
'class' => VerbFilter::className(),
|
||||
'actions' => [
|
||||
'delete' => ['post'],
|
||||
'access' => [
|
||||
'class' => \yii\filters\AccessControl::className(),
|
||||
'only' => [ 'index','open','close'],
|
||||
'rules' => [
|
||||
// allow authenticated users
|
||||
[
|
||||
'allow' => true,
|
||||
'roles' => ['@'],
|
||||
],
|
||||
// everything else is denied
|
||||
],
|
||||
],
|
||||
];
|
||||
@ -42,17 +48,6 @@ class AccountStateController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Displays a single AccountState model.
|
||||
* @param integer $id
|
||||
* @return mixed
|
||||
*/
|
||||
public function actionView($id)
|
||||
{
|
||||
return $this->render('view', [
|
||||
'model' => $this->findModel($id),
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new AccountState model.
|
||||
@ -107,55 +102,8 @@ class AccountStateController extends Controller
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Creates a new AccountState model.
|
||||
* If creation is successful, the browser will be redirected to the 'view' page.
|
||||
* @return mixed
|
||||
*/
|
||||
public function actionCreate()
|
||||
{
|
||||
$model = new AccountState();
|
||||
|
||||
if ($model->load(Yii::$app->request->post()) && $model->save()) {
|
||||
return $this->redirect(['view', 'id' => $model->id_account_state]);
|
||||
} else {
|
||||
return $this->render('create', [
|
||||
'model' => $model,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates an existing AccountState model.
|
||||
* If update is successful, the browser will be redirected to the 'view' page.
|
||||
* @param integer $id
|
||||
* @return mixed
|
||||
*/
|
||||
public function actionUpdate($id)
|
||||
{
|
||||
$model = $this->findModel($id);
|
||||
|
||||
if ($model->load(Yii::$app->request->post()) && $model->save()) {
|
||||
return $this->redirect(['view', 'id' => $model->id_account_state]);
|
||||
} else {
|
||||
return $this->render('update', [
|
||||
'model' => $model,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Deletes an existing AccountState model.
|
||||
* If deletion is successful, the browser will be redirected to the 'index' page.
|
||||
* @param integer $id
|
||||
* @return mixed
|
||||
*/
|
||||
public function actionDelete($id)
|
||||
{
|
||||
$this->findModel($id)->delete();
|
||||
|
||||
return $this->redirect(['index']);
|
||||
}
|
||||
|
||||
/**
|
||||
* Finds the AccountState model based on its primary key value.
|
||||
@ -172,4 +120,63 @@ class AccountStateController extends Controller
|
||||
throw new NotFoundHttpException('The requested page does not exist.');
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Creates a new AccountState model.
|
||||
* If creation is successful, the browser will be redirected to the 'view' page.
|
||||
* @return mixed
|
||||
public function actionCreate()
|
||||
{
|
||||
$model = new AccountState();
|
||||
|
||||
if ($model->load(Yii::$app->request->post()) && $model->save()) {
|
||||
return $this->redirect(['view', 'id' => $model->id_account_state]);
|
||||
} else {
|
||||
return $this->render('create', [
|
||||
'model' => $model,
|
||||
]);
|
||||
}
|
||||
}
|
||||
*/
|
||||
/**
|
||||
* Updates an existing AccountState model.
|
||||
* If update is successful, the browser will be redirected to the 'view' page.
|
||||
* @param integer $id
|
||||
* @return mixed
|
||||
public function actionUpdate($id)
|
||||
{
|
||||
$model = $this->findModel($id);
|
||||
|
||||
if ($model->load(Yii::$app->request->post()) && $model->save()) {
|
||||
return $this->redirect(['view', 'id' => $model->id_account_state]);
|
||||
} else {
|
||||
return $this->render('update', [
|
||||
'model' => $model,
|
||||
]);
|
||||
}
|
||||
}
|
||||
*/
|
||||
/**
|
||||
* Deletes an existing AccountState model.
|
||||
* If deletion is successful, the browser will be redirected to the 'index' page.
|
||||
* @param integer $id
|
||||
* @return mixed
|
||||
public function actionDelete($id)
|
||||
{
|
||||
$this->findModel($id)->delete();
|
||||
|
||||
return $this->redirect(['index']);
|
||||
}
|
||||
*/
|
||||
/**
|
||||
* Displays a single AccountState model.
|
||||
* @param integer $id
|
||||
* @return mixed
|
||||
|
||||
public function actionView($id)
|
||||
{
|
||||
return $this->render('view', [
|
||||
'model' => $this->findModel($id),
|
||||
]);
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user