add card and customer translations

This commit is contained in:
2015-09-27 21:49:29 +02:00
parent 7df9800fec
commit 5d9587d8fd
4 changed files with 134 additions and 3 deletions

View 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 [
'Active' => 'Aktív',
'BARCODE' => 'VONALKÓD',
'Card: ' => 'Bérletkártya: ',
'Cards' => 'Bérletkártyák',
'Create' => 'Mentés',
'Create Card' => 'Új bérletkártya',
'Created At' => 'Létrehozás ideje',
'Customer' => 'Vendég',
'Id Card' => 'Azonosító',
'Inactive' => 'Inaktív',
'Number' => 'Kártyaszám',
'QRCODE' => 'QRCODE',
'RFID' => 'RFID',
'Search' => 'Keresés',
'Status' => 'Státusz',
'Type' => 'Típus',
'Update' => 'Módosítás',
'Update {modelClass}: ' => '{modelClass} módosítása:',
'Updated At' => 'Módosítás ideje',
];

View 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 [
'Are you sure you want to delete this item?' => '',
'Cities' => '',
'City Code' => '',
'Create' => '',
'Create City' => '',
'Cso Code' => '',
'Delete' => '',
'Homes' => '',
'Id City' => '',
'Latitude' => '',
'Longitude' => '',
'Name' => '',
'Population' => '',
'Range' => '',
'Reset' => '',
'Rig ID' => '',
'Search' => '',
'Update' => '',
'Update {modelClass}: ' => '',
'Zip' => '',
];

View File

@@ -0,0 +1,52 @@
<?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 [
'Bérlet kártya nem üres vagy hibás kártyaszám' => '',
'Man' => 'Férfi',
'Password' => '',
'Unknown sex' => 'Nincs megadva',
'Woman' => 'Nő',
'Address' => 'Cím',
'Birthdate' => 'Születésnap',
'Card number' => 'Kártyaszám',
'City' => 'Város',
'Country' => 'Ország',
'Create' => 'Mentés',
'Create Customer' => 'Új vendég',
'Created At' => 'Létrehozás ideje',
'Customers' => 'Vendégek',
'Date Stundent Card Expire' => 'Diákigazolvány lejárati dátum',
'Description' => 'Megjegyzés',
'Email' => 'Email',
'Id Customer' => 'Azonosító',
'Id Customer Card' => 'Bérletkártya azonosító',
'Id Partner Card' => 'Partnerkártya azonosító',
'Id Proposer' => 'Ajánló',
'Id User' => 'Admin',
'Image' => 'Kép',
'Name' => 'Név',
'Phone' => 'Telefon',
'Search' => 'Keresés',
'Sex' => 'Nem',
'Tax Number' => 'Adószám',
'Update' => 'Módosítás',
'Update {modelClass}: ' => '{modelClass} módosítása:',
'Updated At' => 'Módosítás ideje',
'Zip' => 'Irsz.',
];

View File

@@ -115,9 +115,9 @@ class Customer extends \yii\db\ActiveRecord
static function sexes() { static function sexes() {
return [ return [
self::SEX_UNKNOWN => Yii::t('common/sex', 'Nincs megadva'), self::SEX_UNKNOWN => Yii::t('common/customer', 'Unknown sex'),
self::SEX_MAN => Yii::t('common/sex', 'Férfi'), self::SEX_MAN => Yii::t('common/customer', 'Man'),
self::SEX_WOMAN => Yii::t('common/sex', ''), self::SEX_WOMAN => Yii::t('common/customer', 'Woman'),
]; ];
} }