add translateions
This commit is contained in:
@@ -19,6 +19,7 @@ return [
|
||||
'class' => 'yii\i18n\Formatter',
|
||||
'dateFormat' => 'yyyy.MM.dd',
|
||||
'datetimeFormat' => 'yyyy.MM.dd HH:mm',
|
||||
'timeFormat' => 'HH:mm',
|
||||
'locale' => 'hu-Hu',
|
||||
'timeZone' => 'UTC',
|
||||
'defaultTimeZone' => 'UTC' ,
|
||||
|
||||
@@ -17,6 +17,6 @@
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'Close' => 'Nyitás',
|
||||
'Open' => 'Zárás',
|
||||
'Close' => 'Zárás',
|
||||
'Open' => 'Nyitás',
|
||||
];
|
||||
|
||||
32
common/messages/hu/common/site.php
Normal file
32
common/messages/hu/common/site.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?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 [
|
||||
'Logout' => 'Kijelentkezés',
|
||||
'Forgot password' => 'Elfelejtett jelszó',
|
||||
'Login' => 'Bejelentkezés',
|
||||
'Password' => 'Jelszó',
|
||||
'Please choose your new password:' => 'Kérem válasszon új jelszót:',
|
||||
'Please fill out the following fields to login:' => 'Kérem töltse ki a következő mezőket a bejelentkezéshez:',
|
||||
'Please fill out your email. A link to reset password will be sent there.' => 'Kérem adja meg az email címét.Értesítést fog kapni a jelszava megváltoztatásáról!',
|
||||
'Remember me' => 'Emlékezz rám',
|
||||
'Request password reset' => 'Jelszó módosítás kérése',
|
||||
'Reset password' => 'Jelszó módosítása',
|
||||
'Send' => 'Küldés',
|
||||
'Username' => 'Felhasználónév/E-mail',
|
||||
];
|
||||
@@ -17,6 +17,8 @@
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'Reception' => 'Recepció',
|
||||
'Reset' => 'Módosítás',
|
||||
'Adatlap' => 'Adatlap',
|
||||
'Are you sure you want to delete this item?' => 'Biztosan törölni szeretné ezt a vendéget?',
|
||||
'Befizetések' => 'Befizetések',
|
||||
@@ -24,7 +26,6 @@ return [
|
||||
'Create Customer' => 'Új vendég',
|
||||
'Customers' => 'Vendégek',
|
||||
'Delete' => 'Törlés',
|
||||
'Reset' => '',
|
||||
'Search' => 'Keresés',
|
||||
'Update' => 'Módosítás',
|
||||
];
|
||||
|
||||
@@ -17,8 +17,9 @@
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'Money movements' => 'Pénzmozgások',
|
||||
'Account' => 'Kassza',
|
||||
'User' => 'Felhasználó',
|
||||
'End' => 'Időintervallum vége',
|
||||
'Start' => 'Időintervallum kezdete',
|
||||
'User' => 'Felhasználó',
|
||||
];
|
||||
|
||||
22
common/messages/hu/frontend/site.php
Normal file
22
common/messages/hu/frontend/site.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 [
|
||||
'Login' => 'Bejelentkezés',
|
||||
'Password' => 'Jelszó',
|
||||
];
|
||||
@@ -17,6 +17,7 @@
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'Logout' => 'Kijelentkezés',
|
||||
'Create' => 'Mentés',
|
||||
'Create Money Movement' => 'Új pénzmozgás',
|
||||
'Create Transfer' => 'Új pénzmozgás',
|
||||
|
||||
@@ -205,7 +205,7 @@ class AccountState extends \common\models\BaseFitnessActiveRecord
|
||||
|
||||
public function hasDifferenceToPrevState(){
|
||||
$result = false;
|
||||
if ( isset( $this->prev_state ) ){
|
||||
if ( isset( $this->prev_state ) && $this->type == self::TYPE_OPEN){
|
||||
$result = $this->prev_money != $this->money;
|
||||
}
|
||||
return $result;
|
||||
|
||||
@@ -30,6 +30,14 @@ class LoginForm extends Model
|
||||
['password', 'validatePassword'],
|
||||
];
|
||||
}
|
||||
|
||||
public function attributeLabels(){
|
||||
return [
|
||||
'username' =>Yii::t('common/site', 'Username'),
|
||||
'password' =>Yii::t('common/site', 'Password'),
|
||||
'rememberMe' =>Yii::t('common/site', 'Remember me'),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Validates the password.
|
||||
|
||||
@@ -378,7 +378,7 @@ class Transfer extends \common\models\BaseFitnessActiveRecord
|
||||
'money',
|
||||
'money_currency',
|
||||
'time' => function ($transfer){
|
||||
return Yii::$app->formatter->asTime($transfer->created_at);
|
||||
return Yii::$app->formatter->asDatetime($transfer->created_at);
|
||||
},
|
||||
'account_name' => function ($transfer) {
|
||||
return $transfer->account->name;
|
||||
|
||||
Reference in New Issue
Block a user