diff --git a/backend/models/Orders.php b/backend/models/Orders.php index 99cc411..5d5d92b 100755 --- a/backend/models/Orders.php +++ b/backend/models/Orders.php @@ -3,6 +3,7 @@ namespace backend\models; use common\models\Customer; + use Yii; class Orders extends \yii\db\ActiveRecord { @@ -56,30 +57,31 @@ public function attributeLabels() { return [ - 'id' => '№ заказа', - 'name' => 'ФИО', - 'phone' => 'Телефон', - 'phone2' => 'Телефон 2', - 'adress' => 'Адрес', - 'body' => 'Сообщение', - 'reserve' => 'Резерв', - 'status' => 'Статус', - 'email' => 'E-mail', - 'total' => 'Сумма', - 'labels' => 'Метки', - 'label' => 'Метка', - 'comment' => 'Комментарий менеджера', - 'date_dedline' => 'Дедлайн', - 'numbercard' => '№ карточки', - 'delivery' => 'Доставка', - 'declaration' => 'Декларация №', - 'stock' => '№ склада', - 'consignment' => '№ накладной', - 'payment' => 'Способ оплаты', - 'insurance' => 'Страховка', - 'amount_imposed' => 'Сумма наложенного', - 'shipping_by' => 'Отправка за счет', - 'city' => 'Город', + 'id' => Yii::t('app', 'orders_id'), + 'name' => Yii::t('app', 'orders_name'), + 'phone' => Yii::t('app', 'orders_phone'), + 'phone2' => Yii::t('app', 'orders_phone2'), + 'adress' => Yii::t('app', 'orders_adress'), + 'body' => Yii::t('app', 'orders_body'), + 'reserve' => Yii::t('app', 'orders_reserve'), + 'status' => Yii::t('app', 'orders_status'), + 'email' => Yii::t('app', 'orders_email'), + 'total' => Yii::t('app', 'orders_total'), + 'labels' => Yii::t('app', 'orders_labels'), + 'label' => Yii::t('app', 'orders_label'), + 'comment' => Yii::t('app', 'orders_comment'), + 'date_dedline' => Yii::t('app', 'orders_date_dedline'), + 'numbercard' => Yii::t('app', 'orders_numbercard'), + 'delivery' => Yii::t('app', 'orders_delivery'), + 'declaration' => Yii::t('app', 'orders_declaration'), + 'stock' => Yii::t('app', 'orders_stock'), + 'consignment' => Yii::t('app', 'orders_consignment'), + 'payment' => Yii::t('app', 'orders_payment'), + 'insurance' => Yii::t('app', 'orders_insurance'), + 'amount_imposed' => Yii::t('app', 'orders_amount_imposed'), + 'shipping_by' => Yii::t('app', 'orders_shipping_by'), + 'city' => Yii::t('app', 'orders_city'), + 'date_time' => Yii::t('app', 'orders_datetime'), ]; } diff --git a/backend/views/delivery/index.php b/backend/views/delivery/index.php index 8d59ec9..867cf95 100755 --- a/backend/views/delivery/index.php +++ b/backend/views/delivery/index.php @@ -12,7 +12,7 @@ * @var DeliverySearch $searchModel */ - $this->title = 'Deliveries'; + $this->title = Yii::t('app', 'Deliveries'); $this->params[ 'breadcrumbs' ][] = $this->title; ?>
- = Html::a('Create Delivery', [ 'create' ], [ 'class' => 'btn btn-success' ]) ?> + = Html::a(Yii::t('app', 'Create Delivery'), [ 'create' ], [ 'class' => 'btn btn-success' ]) ?>
= GridView::widget([ 'dataProvider' => $dataProvider, diff --git a/backend/views/orders/index.php b/backend/views/orders/index.php index 6e5ef4a..dbf28eb 100755 --- a/backend/views/orders/index.php +++ b/backend/views/orders/index.php @@ -12,7 +12,7 @@ $this->params['breadcrumbs'][] = $this->title; ?>- = Html::a('Add Orders', ['create'], ['class' => 'btn btn-success']) ?> + = Html::a(Yii::t('app', 'Add Orders'), ['create'], ['class' => 'btn btn-success']) ?>
'Seo', ]) . $model->url; $this->params[ 'breadcrumbs' ][] = [ - 'label' => Yii::t('app', 'Seos'), + 'label' => Yii::t('app', 'Seo'), 'url' => [ 'index' ], ]; $this->params[ 'breadcrumbs' ][] = [ diff --git a/backend/views/site/error.php b/backend/views/site/error.php index f44c697..7fcc1da 100755 --- a/backend/views/site/error.php +++ b/backend/views/site/error.php @@ -6,6 +6,7 @@ /* @var $exception Exception */ use yii\helpers\Html; +use Yii; $this->title = $name; ?> diff --git a/common/models/Certificate.php b/common/models/Certificate.php index f704489..7fd1365 100755 --- a/common/models/Certificate.php +++ b/common/models/Certificate.php @@ -3,6 +3,7 @@ namespace common\models; use yii\web\UploadedFile; + use Yii; /** * This is the model class for table "certificate". @@ -23,7 +24,7 @@ */ public static function tableName() { - return 'certificate'; + return Yii::t('app', 'certcreate'); } /** @@ -57,10 +58,10 @@ public function attributeLabels() { return [ - 'certificate_id' => 'Certificate ID', - 'name' => 'Name', - 'link' => 'Link', - 'file' => 'Certificate File', + 'certificate_id' => Yii::t('app', 'certificate_id'), + 'name' => Yii::t('app', 'certname'), + 'link' => Yii::t('app', 'certlink'), + 'file' => Yii::t('app', 'certfile'), ]; } diff --git a/common/models/Orders.php b/common/models/Orders.php index 1a47b12..a6b55bd 100755 --- a/common/models/Orders.php +++ b/common/models/Orders.php @@ -79,6 +79,27 @@ 'phone' => Yii::t('app', 'order_phone'), 'email' => Yii::t('app', 'order_email'), 'comment' => Yii::t('app', 'order_comment'), + 'id' => Yii::t('app', 'orders_id'), + 'phone2' => Yii::t('app', 'orders_phone2'), + 'adress' => Yii::t('app', 'orders_adress'), + 'body' => Yii::t('app', 'orders_body'), + 'reserve' => Yii::t('app', 'orders_reserve'), + 'status' => Yii::t('app', 'orders_status'), + 'total' => Yii::t('app', 'orders_total'), + 'labels' => Yii::t('app', 'orders_labels'), + 'label' => Yii::t('app', 'orders_label'), + 'date_dedline' => Yii::t('app', 'orders_date_dedline'), + 'numbercard' => Yii::t('app', 'orders_numbercard'), + 'delivery' => Yii::t('app', 'orders_delivery'), + 'declaration' => Yii::t('app', 'orders_declaration'), + 'stock' => Yii::t('app', 'orders_stock'), + 'consignment' => Yii::t('app', 'orders_consignment'), + 'payment' => Yii::t('app', 'orders_payment'), + 'insurance' => Yii::t('app', 'orders_insurance'), + 'amount_imposed' => Yii::t('app', 'orders_amount_imposed'), + 'shipping_by' => Yii::t('app', 'orders_shipping_by'), + 'city' => Yii::t('app', 'orders_city'), + 'date_time' => Yii::t('app', 'orders_datetime'), ]; } diff --git a/common/modules/product/models/ProductSearch.php b/common/modules/product/models/ProductSearch.php index 43b4484..a6c5d5c 100755 --- a/common/modules/product/models/ProductSearch.php +++ b/common/modules/product/models/ProductSearch.php @@ -65,10 +65,10 @@ { $labels = parent::attributeLabels(); $new_labels = [ - 'category_id' => 'Category ID', - 'brand_id' => 'Brand ID', - 'product_name' => 'Product name', - 'variant_count' => 'Variant count', + 'category_id' => Yii::t('app', 'pr_category_id'), + 'brand_id' => Yii::t('app', 'pr_brand_id'), + 'product_name' => Yii::t('app', 'pr_product_name'), + 'variant_count' => Yii::t('app', 'pr_variant_count'), ]; return array_merge($labels, $new_labels); } diff --git a/common/translation/ru/app.php b/common/translation/ru/app.php index ed53a55..cf33aa5 100755 --- a/common/translation/ru/app.php +++ b/common/translation/ru/app.php @@ -182,5 +182,46 @@ return [ 'Поиск' => 'Поиск', 'Результаты поиска для' => 'Результаты поиска для', 'certs' => 'Сертификаты', + + 'orders_id' => '№ заказа', + 'orders_name' => 'Ф.И.О.', + 'orders_phone' => 'Телефон', + 'orders_phone2' => 'Телефон 2', + 'orders_adress' => 'Адрес', + 'orders_body' => 'Сообщение', + 'orders_reserve' => 'Резерв', + 'orders_status' => 'Статус', + 'orders_email' => 'E-mail', + 'orders_total' => 'Сумма', + 'orders_labels' => 'Метки', + 'orders_label' => 'Метка', + 'orders_comment' => 'Комментарий менеджера', + 'orders_date_dedline' => 'Дедлайн', + 'orders_numbercard' => '№ карточки', + 'orders_delivery' => 'Доставка', + 'orders_declaration' => 'Декларация №', + 'orders_stock' => '№ склада', + 'orders_consignment' => '№ накладной', + 'orders_payment' => 'Способ оплаты', + 'orders_insurance' => 'Страховка', + 'orders_amount_imposed' => 'Сумма наложенного', + 'orders_shipping_by' => 'Отправка за счет', + 'orders_city' => 'Город', + 'orders_datetime' => 'Дата и время заказа', + 'Add Orders' => 'Добавить заказ', + + 'pr_category_id' => 'ID категории', + 'pr_brand_id' => 'ID бренда', + 'pr_product_name' => 'Название товара', + 'pr_variant_count' => 'Вариант подсчёта', + 'Create Delivery' => 'Создать доставку', + 'Deliveries' => 'Доставка', + + 'Create Seo' => 'Create Seo', + 'certificate_id' => 'ID сертификата', + 'certname' => 'Название', + 'certlink' => 'Ссылка', + 'certfile' => 'Файл сертификата', + 'certcreate' => 'Создать сертификат', 'All-list ' => 'Весь ', ]; \ No newline at end of file diff --git a/common/translation/ru/rubrication.php b/common/translation/ru/rubrication.php new file mode 100644 index 0000000..e8211ed --- /dev/null +++ b/common/translation/ru/rubrication.php @@ -0,0 +1,4 @@ + 'Корневая категория', +]; \ No newline at end of file diff --git a/common/translation/ua/app.php b/common/translation/ua/app.php index ad5a831..add93d1 100755 --- a/common/translation/ua/app.php +++ b/common/translation/ua/app.php @@ -23,7 +23,7 @@ return [ 'password_repeat' => 'Повторити пароль', 'registration' => 'Реєстрація', 'message' => 'Цей {field} вже зайнято', - 'message_match_password' => 'Пароли не совпадают', + 'message_match_password' => 'Паролі не співпадають', 'exit' => 'Вихід', 'enter' => 'Війти', 'your_personal_area' => 'Вхід в особистий кабінет', @@ -46,8 +46,8 @@ return [ 'url' => 'Посилання', 'width' => 'Ширина', 'height' => 'Висота', - 'blog_id' => 'Blog ID', - 'user_id' => 'User ID', + 'blog_id' => 'ID Блогу', + 'user_id' => 'ID Користувача', 'name' => 'Назва', 'link' => 'Посилання', 'date_add' => 'Дата додавання', @@ -55,7 +55,7 @@ return [ 'view_count' => 'Кількість переглядів', 'description' => 'Опис', 'cover' => 'Фото головне', - 'event_id' => 'Event ID', + 'event_id' => 'ID Події', 'alias' => 'Посилання', 'body' => 'Тіло', 'meta_title' => 'Мета заголовок', @@ -94,18 +94,18 @@ return [ 'articlesDate' => 'Дата', 'articlesImage' => 'Зображення', - 'lang-Articles ID' => '', - 'lang-Language ID' => '', - 'lang-Title' => '', - 'lang-Body' => '', - 'lang-Meta Title' => '', - 'lang-Meta Keywords' => '', - 'lang-Meta Description' => '', - 'lang-Seo Text' => '', - 'lang-H1' => '', - 'lang-Body Preview' => '', - 'language_id' => '', - 'bg_id' => '', + 'lang-Articles ID' => 'Articles ID', + 'lang-Language ID' => 'Language ID', + 'lang-Title' => 'Title', + 'lang-Body' => 'Body', + 'lang-Meta Title' => 'Meta Title', + 'lang-Meta Keywords' => 'Meta Keywords', + 'lang-Meta Description' => 'Meta Description', + 'lang-Seo Text' => 'Seo Text', + 'lang-H1' => 'H1', + 'lang-Body Preview' => 'Body Preview', + 'language_id' => 'ID Мови', + 'bg_id' => 'Bg ID', 'feedback_id' => 'Feedback ID', 'ip' => 'IP', @@ -116,23 +116,23 @@ return [ 'cost'=>'Цена за один', 'count'=>'Кол.', 'sum_cost'=>'Сумма', - 'in_menu' => 'Show in menu', - 'page_id' => 'Page ID', - 'meta_keywords' => 'Meta Keywords', - 'meta_description' => 'Meta Description', + 'in_menu' => 'Показати в меню', + 'page_id' => 'ID сторінки', + 'meta_keywords' => 'Meta ключові слова', + 'meta_description' => 'Meta опис', 'product_spec_id' => 'Product Spec ID', - 'product_id' => 'Product ID', + 'product_id' => 'ID продукта', 'tech_spec_link' => 'Tech Spec Link', 'tech_char_link' => 'Tech Char Link', 'techSpecFile' => 'techSpecFile', 'techCharFile' => 'techCharFile', 'tech_spec_text' => 'Tech Spec Text', - 'instruction' => 'Instruction', + 'instruction' => 'Інструкція', 'product_to_project_id' => 'Product To Project ID', 'product_variant_id' => 'Product Variant ID', 'project_id' => 'Project ID', 'product_to_rating_id' => 'Product To Rating ID', - 'value' => 'Value', + 'value' => 'Значення', 'images' => 'Images', 'project_image_id' => 'Project Image ID', 'meta' => 'Meta', @@ -143,8 +143,8 @@ return [ 'is_slider' => 'Is Slider', 'is_banner' => 'Is Banner', 'orders_delivery_id' => 'Orders Delivery ID', - 'text' => 'Text', - 'emailis' => 'Такой email уже есть.', + 'text' => 'Текст', + 'emailis' => 'Такий email вже є.', 'меню' => 'меню', @@ -182,5 +182,38 @@ return [ 'Поиск' => 'Пошук', 'Результаты поиска для' => 'Результати пошуку для', 'certs' => 'Сертифікати', + + + 'orders_id' => '№ замовлення', + 'orders_name' => 'П.І.Б.', + 'orders_phone' => 'Телефон', + 'orders_phone2' => 'Телефон 2', + 'orders_adress' => 'Адреса', + 'orders_body' => 'Повідомлення', + 'orders_reserve' => 'Резерв', + 'orders_status' => 'Статус', + 'orders_email' => 'E-mail', + 'orders_total' => 'Сума', + 'orders_labels' => 'Мітки', + 'orders_label' => 'Мітка', + 'orders_comment' => 'Коментар менеджера', + 'orders_date_dedline' => 'Дедлайн', + 'orders_numbercard' => '№ картки', + 'orders_delivery' => 'Доставка', + 'orders_declaration' => 'Декларація №', + 'orders_stock' => '№ складу', + 'orders_consignment' => '№ накладної', + 'orders_payment' => 'Спосіб оплати', + 'orders_insurance' => 'Страховка', + 'orders_amount_imposed' => 'Сума накладеного', + 'orders_shipping_by' => 'Відправка за рахунок', + 'orders_city' => 'Місто', + 'Add Orders' => 'Додати замовлення', + 'pr_category_id' => 'ID категорії', + 'pr_brand_id' => 'ID бренду', + 'pr_product_name' => 'Назва товару', + 'pr_variant_count' => 'Variant count', + 'Create Delivery' => 'Создать доставку', + 'Deliveries' => 'Доставка', 'All-list ' => 'Весь ', ]; \ No newline at end of file -- libgit2 0.21.4