diff --git a/config/app.php b/config/app.php index df6d7921d..3ba76231d 100644 --- a/config/app.php +++ b/config/app.php @@ -16,7 +16,7 @@ return [ | */ - 'debug' => true, + 'debug' => env('APP_DEBUG', true), /* |-------------------------------------------------------------------------- @@ -41,7 +41,7 @@ return [ | */ - 'url' => 'http://localhost', + 'url' => env('APP_URL', 'http://localhost'), /* |-------------------------------------------------------------------------- @@ -137,7 +137,7 @@ return [ | */ - 'key' => 'S6g15W4dDKtMwoxFbvFRPEtFlEMDT661', + 'key' => env('APP_KEY', ''), 'cipher' => 'AES-256-CBC', diff --git a/config/cache.php b/config/cache.php index c51ef2228..93bfc05a6 100644 --- a/config/cache.php +++ b/config/cache.php @@ -13,7 +13,7 @@ return [ | */ - 'default' => 'file', + 'default' => env('CACHE_DRIVER', 'file'), /* |-------------------------------------------------------------------------- diff --git a/config/cms.php b/config/cms.php index 162eaa92d..93b6bc92d 100644 --- a/config/cms.php +++ b/config/cms.php @@ -156,7 +156,7 @@ return [ | */ - 'enableRoutesCache' => false, + 'enableRoutesCache' => env('ROUTES_CACHE', false), /* |-------------------------------------------------------------------------- @@ -196,7 +196,7 @@ return [ | */ - 'enableAssetCache' => false, + 'enableAssetCache' => env('ASSET_CACHE', false), /* |-------------------------------------------------------------------------- @@ -250,7 +250,7 @@ return [ | */ - 'databaseTemplates' => false, + 'databaseTemplates' => env('DATABASE_TEMPLATES', false), /* |-------------------------------------------------------------------------- @@ -360,7 +360,7 @@ return [ | */ - 'linkPolicy' => 'detect', + 'linkPolicy' => env('LINK_POLICY', 'detect'), /* |-------------------------------------------------------------------------- @@ -396,7 +396,7 @@ return [ | */ - 'enableCsrfProtection' => true, + 'enableCsrfProtection' => env('ENABLE_CSRF', true), /* |-------------------------------------------------------------------------- diff --git a/config/database.php b/config/database.php index eac9bbff0..76ab9de73 100644 --- a/config/database.php +++ b/config/database.php @@ -26,7 +26,7 @@ return [ | */ - 'default' => 'mysql', + 'default' => env('DB_CONNECTION', 'mysql'), /* |-------------------------------------------------------------------------- @@ -48,18 +48,18 @@ return [ 'sqlite' => [ 'driver' => 'sqlite', - 'database' => 'storage/database.sqlite', + 'database' => env('DB_DATABASE', 'storage/database.sqlite'), 'prefix' => '', ], 'mysql' => [ 'driver' => 'mysql', 'engine' => 'InnoDB', - 'host' => '192.168.1.2', - 'port' => 3306, - 'database' => 'birzha', - 'username' => 'orient', - 'password' => 'orient', + 'host' => env('DB_HOST', '192.168.1.2'), + 'port' => env('DB_PORT', 3306), + 'database' => env('DB_DATABASE', 'birzha'), + 'username' => env('DB_USERNAME', ''), + 'password' => env('DB_PASSWORD', ''), 'charset' => 'utf8mb4', 'collation' => 'utf8mb4_unicode_ci', 'prefix' => '', @@ -68,11 +68,11 @@ return [ 'pgsql' => [ 'driver' => 'pgsql', - 'host' => 'localhost', - 'port' => 5432, - 'database' => 'database', - 'username' => 'root', - 'password' => '', + 'host' => env('DB_HOST', 'localhost'), + 'port' => env('DB_PORT', 5432), + 'database' => env('DB_DATABASE', 'database'), + 'username' => env('DB_USERNAME', ''), + 'password' => env('DB_PASSWORD', ''), 'charset' => 'utf8', 'prefix' => '', 'schema' => 'public', @@ -80,11 +80,11 @@ return [ 'sqlsrv' => [ 'driver' => 'sqlsrv', - 'host' => 'localhost', - 'port' => 1433, - 'database' => 'database', - 'username' => 'root', - 'password' => '', + 'host' => env('DB_HOST', 'localhost'), + 'port' => env('DB_PORT', 5432), + 'database' => env('DB_DATABASE', 'database'), + 'username' => env('DB_USERNAME', ''), + 'password' => env('DB_PASSWORD', ''), 'prefix' => '', ], @@ -120,9 +120,9 @@ return [ 'cluster' => false, 'default' => [ - 'host' => '127.0.0.1', - 'password' => null, - 'port' => 6379, + 'host' => env('REDIS_HOST', '127.0.0.1'), + 'password' => env('REDIS_PASSWORD', null), + 'port' => env('REDIS_PORT', 6379), 'database' => 0, ], @@ -143,6 +143,6 @@ return [ | */ - 'useConfigForTesting' => false, + 'useConfigForTesting' => env('DB_USE_CONFIG_FOR_TESTING', false), ]; diff --git a/config/mail.php b/config/mail.php index 7773efdd8..88ca7680f 100644 --- a/config/mail.php +++ b/config/mail.php @@ -16,7 +16,7 @@ return [ | */ - 'driver' => 'smtp', + 'driver' => env('MAIL_DRIVER', 'smtp'), /* |-------------------------------------------------------------------------- @@ -29,7 +29,7 @@ return [ | */ - 'host' => 'smtp.mailgun.org', + 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), /* |-------------------------------------------------------------------------- @@ -42,7 +42,7 @@ return [ | */ - 'port' => 587, + 'port' => env('MAIL_PORT', 587), /* |-------------------------------------------------------------------------- @@ -71,7 +71,7 @@ return [ | */ - 'encryption' => 'tls', + 'encryption' => env('MAIL_ENCRYPTION', 'tls'), /* |-------------------------------------------------------------------------- @@ -84,7 +84,7 @@ return [ | */ - 'username' => null, + 'username' => env('MAIL_USERNAME', null), /* |-------------------------------------------------------------------------- @@ -97,7 +97,7 @@ return [ | */ - 'password' => null, + 'password' => env('MAIL_PASSWORD', null), /* |-------------------------------------------------------------------------- diff --git a/config/queue.php b/config/queue.php index 660fe0c83..cd409c519 100644 --- a/config/queue.php +++ b/config/queue.php @@ -16,7 +16,7 @@ return [ | */ - 'default' => 'sync', + 'default' => env('QUEUE_CONNECTION', 'sync'), /* |-------------------------------------------------------------------------- diff --git a/config/session.php b/config/session.php index 5ad876ce1..a76b35486 100644 --- a/config/session.php +++ b/config/session.php @@ -16,7 +16,7 @@ return [ | */ - 'driver' => 'file', + 'driver' => env('SESSION_DRIVER', 'file'), /* |-------------------------------------------------------------------------- diff --git a/modules/system/lang/en/validation.php b/modules/system/lang/en/validation.php index ad6561c9e..e0febd53e 100644 --- a/modules/system/lang/en/validation.php +++ b/modules/system/lang/en/validation.php @@ -116,6 +116,9 @@ return [ 'uploaded' => 'The :attribute failed to upload.', 'url' => 'The :attribute format is invalid.', 'uuid' => 'The :attribute must be a valid UUID.', + 'atleast_1_image' => 'You have to upload at least 1 image.', + 'image_type' => 'You must upload :image_type!', + 'image_size' => 'Max file size :size Mb!', /* |-------------------------------------------------------------------------- @@ -145,6 +148,26 @@ return [ | */ - 'attributes' => [], + 'attributes' => [ + 'name_en' => 'Lot title EN', + 'name_ru' => 'Lot title RU', + 'name_tm' => 'Lot title TM', + 'mark' => 'Product mark', + 'manufacturer' => 'Vendor', + 'category_id' => 'Category', + 'country_id' => "Vendor's country", + 'measure_id' => 'Measure', + 'quantity' => 'Quantity', + 'currency_id' => 'Currency', + 'price' => 'Price', + 'delivery_term_id' => 'Delivery term', + 'place' => 'Destination', + 'packaging' => 'Packaging', + 'payment_term_id' => 'Payment term', + 'description_ru' => 'Description RU', + 'description_en' => 'Description EN', + 'description_tm' => 'Description TM', + 'bank_file' => 'File from bank', + ], ]; diff --git a/modules/system/lang/ru/validation.php b/modules/system/lang/ru/validation.php index ece8c3dd9..c6ff3a901 100644 --- a/modules/system/lang/ru/validation.php +++ b/modules/system/lang/ru/validation.php @@ -116,6 +116,9 @@ return [ 'uploaded' => ':attribute не удалось загрузить.', "url" => "Поле :attribute имеет ошибочный формат.", 'uuid' => 'Поле :attribute должно быть действительным UUID.', + 'atleast_1_image' => 'Загрузите хотя бы 1 фото.', + 'image_type' => 'Тип изображания должен быть :image_type!', + 'image_size' => 'Изображение не больше :size Mб!', /* |-------------------------------------------------------------------------- @@ -145,6 +148,26 @@ return [ | */ - 'attributes' => [], + 'attributes' => [ + 'name_en' => 'Наименование лота EN', + 'name_ru' => 'Наименование лота RU', + 'name_tm' => 'Наименование лота TM', + 'mark' => 'Марка товара', + 'manufacturer' => 'Производитель', + 'category_id' => 'Категория', + 'country_id' => 'Страна производителя', + 'measure_id' => 'Единицы измерения', + 'quantity' => 'Количество товара', + 'currency_id' => 'Валюта', + 'price' => 'Цена за единицу', + 'delivery_term_id' => 'Условия поставки', + 'place' => 'Пункт', + 'packaging' => 'Упаковка', + 'payment_term_id' => 'Условия оплаты', + 'description_ru' => 'Описание RU', + 'description_en' => 'Описание EN', + 'description_tm' => 'Описание TM', + 'bank_file' => 'Файл из банка', + ], ]; diff --git a/modules/system/lang/tm/client.php b/modules/system/lang/tm/client.php new file mode 100644 index 000000000..ef0f98ef6 --- /dev/null +++ b/modules/system/lang/tm/client.php @@ -0,0 +1,102 @@ + [ + 'formatting' => 'Formatlama', + 'quote' => 'Alıntı', + 'code' => 'Kod', + 'header1' => 'Başlık 1', + 'header2' => 'Başlık 2', + 'header3' => 'Başlık 3', + 'header4' => 'Başlık 4', + 'header5' => 'Başlık 5', + 'header6' => 'Başlık 6', + 'bold' => 'Kalın', + 'italic' => 'İtalik', + 'unorderedlist' => 'Sırasız Liste', + 'orderedlist' => 'Sıralı Liste', + 'video' => 'Video', + 'image' => 'Görsel/Resim', + 'link' => 'Link', + 'horizontalrule' => 'Yatay Çizgi Ekle', + 'fullscreen' => 'Tam Ekran', + 'preview' => 'Önizleme', + ], + 'mediamanager' => [ + 'insert_link' => "Medya Linki Ekle", + 'insert_image' => "Medya Resim Ekle", + 'insert_video' => "Medya Video Ekle", + 'insert_audio' => "Medya Ses Ekle", + 'invalid_file_empty_insert' => "Lütfen link verilecek dosyayı seçin.", + 'invalid_file_single_insert' => "Lütfen tek bir dosya seçin.", + 'invalid_image_empty_insert' => "Lütfen eklenecek resim(ler)i seçin.", + 'invalid_video_empty_insert' => "Lütfen eklenecek video dosyasını seçin.", + 'invalid_audio_empty_insert' => "Lütfen eklenecek ses dosyasını seçin.", + ], + 'alert' => [ + 'confirm_button_text' => 'Evet', + 'cancel_button_text' => 'İptal', + 'widget_remove_confirm' => 'Bu eklentiyi kaldırma istediğinize emin misiniz?', + ], + 'datepicker' => [ + 'previousMonth' => 'Önceki Ay', + 'nextMonth' => 'Sonraki Ay', + 'months' => ['Ocak', 'Şubat', 'Mart', 'Nisan', 'Mayıs', 'Haziran', 'Temmuz', 'Ağustos', 'Eylül', 'Ekim', 'Kasım', 'Aralık'], + 'weekdays' => ['Pazar', 'Pazartesi', 'Salı', 'Çarşamba', 'Perşembe', 'Cuma', 'Cumartesi'], + 'weekdaysShort' => ['Paz', 'Pzt', 'Sal', 'Çar', 'Per', 'Cum', 'Cmt'], + ], + 'colorpicker' => [ + 'choose' => 'Seç', + ], + 'filter' => [ + 'group' => [ + 'all' => 'tümü', + ], + 'scopes' => [ + 'apply_button_text' => 'Uygula', + 'clear_button_text' => 'Temizle', + ], + 'dates' => [ + 'all' => 'tümü', + 'filter_button_text' => 'Filtrele', + 'reset_button_text' => 'Sıfırla', + 'date_placeholder' => 'Tarih', + 'after_placeholder' => 'Sonra', + 'before_placeholder' => 'Önce', + ], + 'numbers' => [ + 'all' => 'all', + 'filter_button_text' => 'Filtrele', + 'reset_button_text' => 'Sıfırla', + 'min_placeholder' => 'Min', + 'max_placeholder' => 'Max', + ], + ], + 'eventlog' => [ + 'show_stacktrace' => 'Veri yığınını göster', + 'hide_stacktrace' => 'Veri yığınını gizle', + 'tabs' => [ + 'formatted' => 'Formatlı', + 'raw' => 'Ham Veri', + ], + 'editor' => [ + 'title' => 'Kaynak kod editörü', + 'description' => 'İşletim sisteminiz URL şemalarına yanıt verecek şekilde yapılandırılmalıdır.', + 'openWith' => 'Birlikte aç', + 'remember_choice' => 'Bu oturum için seçenekleri hatırla', + 'open' => 'Aç', + 'cancel' => 'İptal', + ], + ], +]; diff --git a/modules/system/lang/tm/lang.php b/modules/system/lang/tm/lang.php new file mode 100644 index 000000000..ee57995ad --- /dev/null +++ b/modules/system/lang/tm/lang.php @@ -0,0 +1,458 @@ + [ + 'name' => 'OctoberCMS', + 'tagline' => 'Sadeliğe dönüş...', + ], + 'locale' => [ + 'ar' => 'العربية', + 'be' => 'Беларуская', + 'bg' => 'Български', + 'ca' => 'Català', + 'cs' => 'Čeština', + 'da' => 'Dansk', + 'en' => 'English (United States)', + 'en-au' => 'English (Australia)', + 'en-ca' => 'English (Canada)', + 'en-gb' => 'English (United Kingdom)', + 'et' => 'Eesti', + 'de' => 'Deutsch', + 'el' => 'Ελληνικά', + 'es' => 'Español', + 'es-ar' => 'Español (Argentina)', + 'fa' => 'فارسی', + 'fr' => 'Français', + 'fr-ca' => 'Français (Canada)', + 'hu' => 'Magyar', + 'id' => 'Bahasa Indonesia', + 'it' => 'Italiano', + 'ja' => '日本語', + 'kr' => '한국어', + 'lt' => 'Lietuvių', + 'lv' => 'Latviešu', + 'nb-no' => 'Norsk (Bokmål)', + 'nl' => 'Nederlands', + 'pl' => 'Polski', + 'pt-br' => 'Português (Brasil)', + 'pt-pt' => 'Português (Portugal)', + 'ro' => 'Română', + 'rs' => 'Srpski', + 'ru' => 'Русский', + 'fi' => 'Suomi', + 'sv' => 'Svenska', + 'sk' => 'Slovenský', + 'sl' => 'Slovenščina', + 'tr' => 'Türkçe', + 'uk' => 'Українська мова', + 'zh-cn' => '简体中文', + 'zh-tw' => '繁體中文', + 'vn' => 'Tiếng việt', + ], + 'directory' => [ + 'create_fail' => "Klasör oluşturulamıyor: :name", + ], + 'file' => [ + 'create_fail' => "Dosya oluşturulamıyor: :name", + ], + 'page' => [ + 'invalid_token' => [ + 'label' => 'Geçersiz güvenlik anahtarı', + ], + ], + 'combiner' => [ + 'not_found' => "Kombine dosyası: ':name' bulunamadı.", + ], + 'system' => [ + 'name' => 'Sistem', + 'menu_label' => 'Sistem', + 'categories' => [ + 'cms' => 'CMS', + 'misc' => 'Çeşitli', + 'logs' => 'Kayıtlar', + 'mail' => 'E-Mail', + 'shop' => 'Mağaza', + 'team' => 'Takım', + 'users' => 'Kullanıcılar', + 'system' => 'Sistem', + 'social' => 'Sosyal', + 'backend' => 'Backend', + 'events' => 'Olaylar', + 'customers' => 'Müşteriler', + 'my_settings' => 'Ayarlarım', + 'notifications' => 'Bildirimler', + ], + ], + 'theme' => [ + 'label' => 'Tema', + 'unnamed' => 'İsimsiz tema', + 'name' => [ + 'label' => 'Tema Adı', + 'help' => 'Temaya benzersiz bir isim verin. Örn: RainLab.Vanilla', + ], + ], + 'themes' => [ + 'install' => 'Temaları yükle', + 'search' => 'tema ara...', + 'installed' => 'Yüklü temalar', + 'no_themes' => 'Mağazadan yüklenmiş bir tema bulunmamaktadır.', + 'recommended' => 'Tavsiye edilen', + 'remove_confirm' => 'Bu temayı silmek istediğinize emin misiniz?', + ], + 'plugin' => [ + 'label' => 'Eklenti', + 'unnamed' => 'İsimsiz eklenti', + 'name' => [ + 'label' => 'Eklenti Adı', + 'help' => 'Eklenti adı eşsiz olmalıdır. Örneğin, RainLab.Blog', + ], + 'by_author' => ':name ile filtrele' + ], + 'plugins' => [ + 'manage' => 'Eklentileri yönet', + 'install' => 'Eklentileri yükle', + 'install_products' => 'Ürünleri yükle', + 'search' => 'eklenti ara...', + 'installed' => 'Yüklü eklentiler', + 'no_plugins' => 'Mağazadan yüklenmiş bir eklenti bulunmamaktadır.', + 'recommended' => 'Tavsiye edilen', + 'plugin_label' => 'Eklenti', + 'unknown_plugin' => 'Eklenti sistemden kaldırıldı.', + 'select_label' => 'Eylem Seçin...', + 'bulk_actions_label' => 'Toplu eylemler', + 'check_yes' => 'Evet', + 'check_no' => 'Hayır', + 'unfrozen' => 'Güncellemeler Aktif', + 'enabled' => 'Eklenti Aktif', + 'freeze' => 'için güncellemeleri devre dışı bırak', + 'unfreeze' => 'için güncellemeleri aktifleştir', + 'enable' => 'aktifleştir', + 'disable' => 'pasifleştir', + 'refresh' => 'yenile', + 'remove' => 'Kaldır', + 'freeze_label' => 'Güncellemeleri Pasifleştir', + 'unfreeze_label' => 'Güncellemeleri Aktifleştir', + 'enable_label' => 'Eklentileri Aktifleştir', + 'disable_label' => 'Eklentileri Pasifleştir', + 'refresh_label' => 'Eklenti Verilerini Sıfırla', + 'action_confirm' => 'Seçili eklentileri :action etmek istediğinize emin misiniz?', + 'freeze_success' => 'Seçilen eklentiler için güncellemeler pasifleştirildi.', + 'unfreeze_success' => 'Seçilen eklentiler için güncellemeler aktifleştirildi.', + 'enable_success' => 'Seçilen eklentiler etkinleştirildi.', + 'disable_success' => 'Seçilen eklentiler pasifleştirildi.', + 'refresh_confirm' => 'Seçili eklentileri sıfırlamak istediğinize emin misiniz? Bu işlem, her eklentinin verilerini sıfırlayarak ilk yükleme durumuna geri getirir.', + 'refresh_success' => 'Eklentiler başarıyla yenilendi.', + 'remove_confirm' => 'Seçili eklentileri kaldırmak istediğinize emin misiniz? Bu işlem, ilişkili tüm verileri de kaldıracaktır.', + 'remove_success' => 'Eklentiler sistemden başarıyla kaldırıldı.', + ], + 'project' => [ + 'name' => 'Proje', + 'owner_label' => 'Proje Sahibi', + 'attach' => 'Projeyi Eşle', + 'detach' => 'Projeyi Ayır', + 'none' => 'Hiçbiri', + 'id' => [ + 'label' => 'Proje ID', + 'help' => 'Proje ID\'sini nasıl bulurum?', + 'missing' => 'Lütfen kullanılacak Proje ID\'sini belirleyin.', + ], + 'detach_confirm' => 'Bu projeyi ayırmak istediğinizden emin misiniz?', + 'unbind_success' => 'Proje ayırma işlemi tamamlandı.', + ], + 'settings' => [ + 'menu_label' => 'Ayarlar', + 'not_found' => 'Belirtilen ayarlar bulunamadı.', + 'missing_model' => 'Ayarlar sayfasında Model tanımı eksik.', + 'update_success' => ':name için ayarlar güncellendi.', + 'return' => 'Sistem ayarları sayfasına dön', + 'search' => 'Ara', + ], + 'mail' => [ + 'log_file' => 'Günlük kayıt dosyası', + 'menu_label' => 'Mail ayarları', + 'menu_description' => 'Email ayarlarını düzenle.', + 'general' => 'Genel', + 'method' => 'Mail Metodu', + 'sender_name' => 'Gönderici Adı', + 'sender_email' => 'Gönderici Email', + 'php_mail' => 'PHP mail', + 'smtp' => 'SMTP', + 'smtp_address' => 'SMTP Adresi', + 'smtp_authorization' => 'SMTP yetkilendirmesi kullan', + 'smtp_authorization_comment' => 'SMTP sunucusu yetkilendirme gerektiriyorsa bu onay kutusunu işaretleyin.', + 'smtp_username' => 'Kullanıcı Adı', + 'smtp_password' => 'Şifre', + 'smtp_port' => 'SMTP Port', + 'smtp_ssl' => 'SSL bağlantısı kullan', + 'smtp_encryption' => 'SMTP şifreleme protokolü', + 'smtp_encryption_none' => 'Şifreleme yok', + 'smtp_encryption_tls' => 'TLS', + 'smtp_encryption_ssl' => 'SSL', + 'sendmail' => 'Sendmail', + 'sendmail_path' => 'Sendmail Yolu', + 'sendmail_path_comment' => 'Sendmail programının yolunu belirtin.', + 'mailgun' => 'Mailgun', + 'mailgun_domain' => 'Mailgun Domain', + 'mailgun_domain_comment' => 'Mailgun domain belirtin.', + 'mailgun_secret' => 'Mailgun Gizli Anahtarı', + 'mailgun_secret_comment' => 'Mailgun API anahtarını girin.', + 'mandrill' => 'Mandrill', + 'mandrill_secret' => 'Mandrill Gizli Anahtarı', + 'mandrill_secret_comment' => 'Mandrill API anahtarını girin.', + 'ses' => 'SES', + 'ses_key' => 'SES key', + 'ses_key_comment' => 'SES API keyi girin', + 'ses_secret' => 'SES secret', + 'ses_secret_comment' => 'SES API secret keyi girin', + 'ses_region' => 'SES bölgesi', + 'ses_region_comment' => 'SES bölgenizi girin (örnek: us-east-1)', + 'drivers_hint_header' => 'Sürücüler yüklenmemiş', + 'drivers_hint_content' => 'Bu eposta yöntemiyle eposta gönderebilmeniz için ":plugin" eklentisinin kurulmuş olması gerekir.', + ], + 'mail_templates' => [ + 'menu_label' => 'Mail şablonları', + 'menu_description' => 'Kullanıcılar ve yöneticiler için gönderilen e-posta şablonları düzenleyin.', + 'new_template' => 'Yeni Şablon', + 'new_layout' => 'Yeni Layout', + 'new_partial' => 'Yeni Partial', + 'template' => 'Şablon', + 'templates' => 'Şablonlar', + 'partial' => 'Partial', + 'partials' => 'Partialler', + 'menu_layouts_label' => 'Mail Layoutları', + 'menu_partials_label' => 'Mail Partialleri', + 'layout' => 'Layout', + 'layouts' => 'Layoutlar', + 'no_layout' => '-- Şablon Yok --', + 'name' => 'İsim', + 'name_comment' => 'Bu şablona referans için benzersiz bir isim verin', + 'code' => 'Kod', + 'code_comment' => 'Bu şablona referans için benzersiz bir kod verin', + 'subject' => 'Konu', + 'subject_comment' => 'Email mesaj konusu', + 'description' => 'Tanım', + 'content_html' => 'HTML', + 'content_css' => 'CSS', + 'content_text' => 'Düzyazı', + 'test_send' => 'Test mesajı gönder', + 'test_success' => 'Test mesajı başarılı şekilde gönderildi.', + 'test_confirm' => 'Deneme mesajı :email eposta adresine gönderilecek. Devam etmek istiyor musunuz?', + 'creating' => 'Şablon Oluşturuluyor...', + 'creating_layout' => 'Layout Oluşturuluyor...', + 'saving' => 'Şablon kaydediliyor...', + 'saving_layout' => 'Layout kaydediliyor...', + 'delete_confirm' => 'Bu şablonu silmek istediğinize emin misiniz?', + 'delete_layout_confirm' => 'Bu layout\'u silmek istediğinize emin misiniz?', + 'deleting' => 'Şablon Siliniyor...', + 'deleting_layout' => 'Layout Siliniyor...', + 'sending' => 'Deneme mesajı gönderiliyor...', + 'return' => 'Şablon listesine geri dön', + 'options' => 'Seçenekler', + 'disable_auto_inline_css' => 'Otomatik satır içi CSS\'yi devre dışı bırak', + ], + 'mail_brand' => [ + 'menu_label' => 'Mail yapılandırma', + 'menu_description' => 'Posta şablonlarının renklerini ve görünümünü değiştirin.', + 'page_title' => 'Posta görünümünü özelleştir', + 'sample_template' => [ + 'heading' => 'Başlık', + 'paragraph' => 'Bu Lorem Ipsum ile doldurulmuş bir paragraf ve bir linktir. Cumque dicta doloremque eaque, enim error laboriosam pariatur possimus tenetur veritatis voluptas.', + 'table' => [ + 'item' => 'Nesne', + 'description' => 'Açıklama', + 'price' => 'Fiyat', + 'centered' => 'Ortalanmış', + 'right_aligned' => 'Sağa Hizalı', + ], + 'buttons' => [ + 'primary' => 'Ana buton', + 'positive' => 'Positif buton', + 'negative' => 'Negatif buton', + ], + 'panel' => 'Bu panel ne kadar harika..', + 'more' => 'Biraz daha metin', + 'promotion' => 'Kupon Kodu: OCTOBER', + 'subcopy' => 'Bu e-postanın alt yazısıdır', + 'thanks' => 'Teşekkürler', + ], + 'fields' => [ + '_section_background' => 'Arkaplan', + 'body_bg' => 'Body arkaplanı', + 'content_bg' => 'İçerik arkaplanı', + 'content_inner_bg' => 'İç içerik arkaplanı', + '_section_buttons' => 'Butonlar', + 'button_text_color' => 'Buton metni rengi', + 'button_primary_bg' => 'Ana düğme arkaplanı', + 'button_positive_bg' => 'Positif düğme arkaplanı', + 'button_negative_bg' => 'Negatif düğme arkaplanı', + '_section_type' => 'Tipografi', + 'header_color' => 'Başlık rengi', + 'heading_color' => 'Başlıkların rengi', + 'text_color' => 'Metin rengi', + 'link_color' => 'Link rengi', + 'footer_color' => 'Footer rengi', + '_section_borders' => 'Borderlar', + 'body_border_color' => 'Body border rengi', + 'subcopy_border_color' => 'Altyazı border rengi', + 'table_border_color' => 'Tablo border rengi', + '_section_components' => 'Eklentiler', + 'panel_bg' => 'Panel arkaplanı', + 'promotion_bg' => 'Promosyon arkaplanı', + 'promotion_border_color' => 'Promosyon border rengi', + ], + ], + 'install' => [ + 'project_label' => 'Projeye bağla', + 'plugin_label' => 'Eklenti Yükle', + 'theme_label' => 'Temayı yükle', + 'missing_plugin_name' => 'Yüklemek istediğiniz eklentinin adını giriniz.', + 'missing_theme_name' => 'Lütfen yüklemek için bir tema ismi giriniz.', + 'install_completing' => 'Kurulumu tamamla', + 'install_success' => 'Eklenti kurulumu tamamlandı.', + ], + 'updates' => [ + 'title' => 'Güncellemeleri Yönet', + 'name' => 'Sistemi Güncelle', + 'menu_label' => 'Güncellemeler', + 'menu_description' => 'Sistemi güncelleyin, temaları ve eklentileri yönetin.', + 'return_link' => 'Sistem güncellemelerine geri dön', + 'check_label' => 'Güncellemeleri kontrol et', + 'retry_label' => 'Tekrar dene', + 'plugin_name' => 'Adı', + 'plugin_code' => 'Kod', + 'plugin_description' => 'Açıklama', + 'plugin_version' => 'Versiyon', + 'plugin_author' => 'Yazar', + 'plugin_not_found' => 'Plugin not found', + 'core_current_build' => 'Mevcut versiyon', + 'core_build' => 'Versiyon :build', + 'core_build_help' => 'Son versiyon kullanılabilir.', + 'core_downloading' => 'Uygulama dosyaları indiriliyor', + 'core_extracting' => 'Uygulama dosyaları çıkarılıyor', + 'core_set_build' => 'Build numarası güncelleniyor', + 'plugins' => 'Modüller', + 'themes' => 'Temalar', + 'disabled' => 'Devre dışı', + 'plugin_downloading' => 'Modül indiriliyor: :name', + 'plugin_extracting' => 'Modül dosyaları çıkarılıyor: :name', + 'plugin_version_none' => 'Yeni eklenti', + 'plugin_current_version' => 'Mevcut sürüm', + 'theme_new_install' => 'Yeni tema kur.', + 'theme_downloading' => 'Tema indiriliyor: :name', + 'theme_extracting' => 'Tema paketten çıkarılıyor: :name', + 'update_label' => 'Sistemi güncelle', + 'update_completing' => 'Güncelleme işlemi tamamlanıyor', + 'update_loading' => 'Kullanılabilir güncellemeler kontrol ediliyor...', + 'update_success' => 'Güncelleme işlemi başarıyla tamamlandı.', + 'update_failed_label' => 'Güncelleme hatası', + 'force_label' => 'Güncellemeye zorla', + 'found' => [ + 'label' => 'Güncellemeler bulundu!', + 'help' => 'Sistemi güncelleye tıklayarak güncelleme işlemini başlatabilirsiniz.', + ], + 'none' => [ + 'label' => 'Güncelleme yok', + 'help' => 'Yeni güncelleme bulunamadı.', + ], + 'important_action' => [ + 'empty' => 'Eylem seçin', + 'confirm' => 'Güncellemeyi onayla', + 'skip' => 'Eklentiyi geç (tek seferlik)', + 'ignore' => 'Eklentiyi geç (her zaman)', + ], + 'important_action_required' => 'Eylem gerekli', + 'important_view_guide' => 'Yükseltme kılavuzuna göz atın', + 'important_view_release_notes' => 'Sürüm notlarını göster', + 'important_alert_text' => 'Bazı eklentiler işlem gerektirebilir.', + 'details_title' => 'Eklenti detayları', + 'details_view_homepage' => 'Anasayfa', + 'details_readme' => 'Kılavuz', + 'details_readme_missing' => 'Herhangi bir kılavuz bulunamadı.', + 'details_changelog' => 'Değişiklikler', + 'details_changelog_missing' => 'Değişiklik geçmişi yok.', + 'details_upgrades' => 'Yükseltme Kılavuzu', + 'details_upgrades_missing' => 'Yükseltme talimatı bulunamadı.', + 'details_licence' => 'Lisans', + 'details_licence_missing' => 'Lisans bilgisi yok.', + 'details_current_version' => 'Mevcut sürüm', + 'details_author' => 'Geliştirici', + ], + 'server' => [ + 'connect_error' => 'Sunucuyla bağlantı kurulamadı.', + 'response_not_found' => 'Güncelleme sunucusu bulunamadı.', + 'response_invalid' => 'Sunucudan hatalı cevap geldi.', + 'response_empty' => 'Sunucudan boş cevap geldi.', + 'file_error' => 'Paket teslim edilirken sunucuda hata meydana geldi.', + 'file_corrupt' => 'Sunucudaki dosya bozulmuş.', + ], + 'behavior' => [ + 'missing_property' => ':class sınıfı :behavior davranışı tarafından kullanılan $:property özelliğini tanımlamalı.', + ], + 'config' => [ + 'not_found' => ':location için tanımlanan :file adlı ayar dosyası bulunamadı.', + 'required' => ':location konumunda kullanılan :property ayarı bir değer içermelidir.', + ], + 'zip' => [ + 'extract_failed' => "':file' adlı çekirdek dosyası dosya paketinden çıkarılamadı.", + ], + 'event_log' => [ + 'hint' => 'Bu kayıtlar, uygulamada ortaya çıkan potansiyel hataları, istisnaları ve hata ayıklama bilgilerini görüntüler.', + 'menu_label' => 'Olay kaydı', + 'menu_description' => 'Olay kayıtlarının zamanlarını ve detaylarını görüntüler.', + 'empty_link' => 'Olay kaydını temizle', + 'empty_loading' => 'Olay kaydı temizleniyor...', + 'empty_success' => 'Olay kaydı temizlendi.', + 'return_link' => 'Olay kayıtlarına dön', + 'id' => 'ID', + 'id_label' => 'Olay Numarası', + 'created_at' => 'Tarih & Saat', + 'message' => 'Mesaj', + 'level' => 'Seviye', + 'preview_title' => 'Olay', + ], + 'request_log' => [ + 'hint' => 'Bu günlük dikkat edilmesi gereken tarayıcı isteklerinin bir listesini görüntüler. Örneğin, bir ziyaretçi bulunmayan bir CMS sayfasını açarsa 404 kodu ile bir kayıt oluşturulur.', + 'menu_label' => 'İstek günlüğü', + 'menu_description' => '(404) sayfası gibi kötü ya da yeniden yönlendirilmiş istekleri görüntüler.', + 'empty_link' => 'İstek günlüğünü temizle', + 'empty_loading' => 'İstek günlüğü temizleniyor...', + 'empty_success' => 'İstek günlüğü temizlendi.', + 'return_link' => 'İstek günlüğüne dön', + 'id' => 'ID', + 'id_label' => 'İstek Numarası', + 'count' => 'Sayaç', + 'referer' => 'Referer', + 'url' => 'URL', + 'status_code' => 'Durum', + 'preview_title' => 'İstek', + ], + 'permissions' => [ + 'name' => 'Sistem', + 'manage_system_settings' => 'Sistem ayarlarını düzenleyebilir', + 'manage_software_updates' => 'Sistem güncellemelerini yönetebilir', + 'access_logs' => 'Sistem günlüğünü görüntüleyebilir', + 'manage_mail_templates' => 'E-posta şablonları yönetebilir', + 'manage_mail_settings' => 'E-posta ayarlarını yönetebilir', + 'manage_other_administrators' => 'Diğer yöneticileri düzenleyebilir', + 'manage_preferences' => 'Yönetim paneli seçeneklerini düzenleyebilir', + 'manage_editor' => 'Kod editör ayarlarını düzenleyebilir', + 'view_the_dashboard' => 'Panoyu görüntüleyebilir', + 'manage_default_dashboard' => 'Varsayılan kontrol panelini yönetebilir', + 'manage_branding' => 'Yönetim Panelini özelleştirebilir', + ], + 'log' => [ + 'menu_label' => 'Log ayarları', + 'menu_description' => 'Hangi alanlar için log kayıtları tutulacağını belirtin.', + 'default_tab' => 'Log kaydetme', + 'log_events' => 'Sistem olaylarını kaydet', + 'log_events_comment' => 'Dosya tabanlı loglara ek olarak, sistem olaylarını veritabanında da tutar.', + 'log_requests' => 'Hatalı istekleri kaydet', + 'log_requests_comment' => '404 hataları gibi dikkat gerektirebilecek tarayıcı istekleri.', + 'log_theme' => 'Tema değişikliklerini kaydet', + 'log_theme_comment' => 'Tema dosyalarında backend üzerinden bir değişiklik yapıldığında tutulan kayıtlar.', + ], + 'media' => [ + 'invalid_path' => "Geçersiz dosya dizini belirtildi: ':path'.", + 'folder_size_items' => 'öğe(ler)', + ], +]; diff --git a/modules/system/lang/tm/validation.php b/modules/system/lang/tm/validation.php new file mode 100644 index 000000000..19a2b8cec --- /dev/null +++ b/modules/system/lang/tm/validation.php @@ -0,0 +1,175 @@ + ':attribute kabul edilmelidir.', + 'active_url' => ':attribute dogry URL bolmalydyr.', + 'after' => ':attribute şundan has köne sene bolmalydyr :date.', + 'after_or_equal' => 'The :attribute must be a date after or equal to :date.', + 'alpha' => ':attribute dine harplardan durmalydyr.', + 'alpha_dash' => ':attribute dine harplardan, sanlardan we tirelerden durmalydyr.', + 'alpha_num' => ':attribute dine harplardan we sanlardan durmalydyr.', + 'array' => ':attribute ýygyndy bolmalydyr.', + 'before' => ':attribute şundan has irki sene bolmalydyr :date.', + 'before_or_equal' => 'The :attribute must be a date before or equal to :date.', + 'between' => [ + 'numeric' => ':attribute :min - :max arasynda bolmalydyr.', + 'file' => ':attribute :min - :max kilobaýt arasynda bolmalydyr.', + 'string' => ':attribute :min - :max harplar arasynda bolmalydyr.', + 'array' => ':attribute :min - :max arasynda madda eýe bolmalydyr.', + ], + 'boolean' => ':attribute diňe dogry ýada ýalňyş bolmalydyr.', + 'confirmed' => ':attribute tassyklamasy deň däl.', + 'date' => ':attribute dogry sene bolmalydyr.', + 'date_equals' => 'The :attribute must be a date equal to :date.', + 'date_format' => ':attribute :format formatyna deň däl.', + 'different' => ':attribute bilen :other birbirinden tapawutly bolmalydyr.', + 'digits' => ':attribute :digits san bolmalydyr.', + 'digits_between' => ':attribute :min bilen :max arasynda san bolmalydyr.', + 'dimensions' => 'The :attribute has invalid image dimensions.', + 'distinct' => 'The :attribute field has a duplicate value.', + 'email' => ':attribute formaty ýalňyş.', + 'ends_with' => 'The :attribute must end with one of the following: :values.', + 'exists' => 'Saýlanan :attribute ýalňyş.', + 'file' => 'The :attribute must be a file.', + 'filled' => ':attribute meýdany zerur.', + 'gt' => [ + 'numeric' => 'The :attribute must be greater than :value.', + 'file' => 'The :attribute must be greater than :value kilobytes.', + 'string' => 'The :attribute must be greater than :value characters.', + 'array' => 'The :attribute must have more than :value items.', + ], + 'gte' => [ + 'numeric' => 'The :attribute must be greater than or equal :value.', + 'file' => 'The :attribute must be greater than or equal :value kilobytes.', + 'string' => 'The :attribute must be greater than or equal :value characters.', + 'array' => 'The :attribute must have :value items or more.', + ], + 'image' => ':attribute surat bolmalydyr.', + 'in' => ':attribute mukdary ýalňyş.', + 'in_array' => 'The :attribute field does not exist in :other.', + 'integer' => ':attribute san bolmalydyr.', + 'ip' => ':attribute dogry IP adres bolmalydyr.', + 'ipv4' => 'The :attribute must be a valid IPv4 address.', + 'ipv6' => 'The :attribute must be a valid IPv6 address.', + 'json' => 'The :attribute must be a valid JSON string.', + 'lt' => [ + 'numeric' => 'The :attribute must be less than :value.', + 'file' => 'The :attribute must be less than :value kilobytes.', + 'string' => 'The :attribute must be less than :value characters.', + 'array' => 'The :attribute must have less than :value items.', + ], + 'lte' => [ + 'numeric' => 'The :attribute must be less than or equal :value.', + 'file' => 'The :attribute must be less than or equal :value kilobytes.', + 'string' => 'The :attribute must be less than or equal :value characters.', + 'array' => 'The :attribute must not have more than :value items.', + ], + 'max' => [ + 'numeric' => ':attribute :max den kiçi bolmalydyr.', + 'file' => 'Faýl :max kilobaýtdan kiçi bolmalydyr.', + 'string' => ':attribute :max harpdan kiçi bolmalydyr.', + 'array' => ':attribute iň az :max maddadan ybarat bolmalydyr.', + ], + 'mimes' => 'Faýlyň formaty :values bolmalydyr.', + 'mimetypes' => ':attribute faýlň formaty :values bolmalydyr.', + 'min' => [ + 'numeric' => ':attribute mukdary :min dan köp bolmalydyr.', + 'file' => ':attribute mukdary :min kilobaýtdan köp bolmalydyr.', + 'string' => ':attribute mukdary :min harpdan köp bolmalydyr.', + 'array' => ':attribute iň az :min harpdan bolmalydyr.', + ], + 'multiple_of' => 'The :attribute must be a multiple of :value', + 'not_in' => 'Saýlanan :attribute geçersiz.', + 'not_regex' => 'The :attribute format is invalid.', + 'numeric' => ':attribute san bolmalydyr.', + 'password' => 'The password is incorrect.', + 'present' => 'The :attribute field must be present.', + 'regex' => ':attribute formaty ýalňyş.', + 'required' => ':attribute meýdany zerur.', + 'required_if' => ':attribute meýdany, :other :value hümmetine eýe bolanynda zerurdyr.', + 'required_unless' => 'The :attribute field is required unless :other is in :values.', + 'required_with' => ':attribute meýdany :values bar bolanda zerurdyr.', + 'required_with_all' => ':attribute meýdany haýsyda bolsa bir :values bar bolanda zerurdyr.', + 'required_without' => ':attribute meýdany :values ýok bolanda zerurdyr.', + 'required_without_all' => ':attribute meýdany :values dan haýsyda bolsa biri ýok bolanda zerurdyr.', + 'same' => ':attribute bilen :other deň bolmalydyr.', + 'size' => [ + 'numeric' => ':attribute :size sandan ybarat bolmalydyr.', + 'file' => ':attribute :size kilobaýt bolmalydyr.', + 'string' => ':attribute :size harp bolmalydyr.', + 'array' => ':attribute :size madda eýe bolmalydyr.', + ], + 'starts_with' => 'The :attribute must start with one of the following: :values.', + 'string' => 'The :attribute must be a string.', + 'timezone' => ':attribute dogry zolak bolmalydyr.', + 'unique' => ':attribute önden hasaba alyndy.', + 'uploaded' => 'The :attribute failed to upload.', + 'url' => ':attribute formaty ýalňyş.', + 'uuid' => 'The :attribute must be a valid UUID.', + 'atleast_1_image' => 'Azyndan 1 surat ýüklemeli.', + 'image_type' => 'Diňe :image_type ýüklemek bolýar!', + 'image_size' => 'Surat :size Mb-dan uly bolmaly däl!', + + /* + |-------------------------------------------------------------------------- + | Custom Validation Language Lines + |-------------------------------------------------------------------------- + | + | Here you may specify custom validation messages for attributes using the + | convention 'attribute.rule' to name the lines. This makes it quick to + | specify a specific custom language line for a given attribute rule. + | + */ + + 'custom' => [ + 'attribute-name' => [ + 'rule-name' => 'custom-message', + ], + ], + + /* + |-------------------------------------------------------------------------- + | Custom Validation Attributes + |-------------------------------------------------------------------------- + | + | The following language lines are used to swap attribute place-holders + | with something more reader friendly such as E-Mail Address instead + | of 'email'. This simply helps us make messages a little cleaner. + | + */ + + 'attributes' => [ + 'name_en' => 'Lotyň ady EN', + 'name_ru' => 'Lotyň ady RU', + 'name_tm' => 'Lotyň ady TM', + 'mark' => 'Harydyň markasy', + 'manufacturer' => 'Öndüriji', + 'category_id' => 'Kategoriýa', + 'country_id' => 'Öndürijiniň yurdy', + 'measure_id' => 'Birlikler', + 'quantity' => 'Harydyň mukdary', + 'currency_id' => 'Pul birligi', + 'price' => 'Bahasy', + 'delivery_term_id' => 'Üpjün etmegiň şertleri', + 'place' => 'Barmaly ýeri', + 'packaging' => 'Gaplama', + 'payment_term_id' => 'Töleg şertleri', + 'description_ru' => 'Beýany RU', + 'description_en' => 'Beýany EN', + 'description_tm' => 'Beýany TM', + 'bank_file' => 'Bankdan faýl', + ], + +]; diff --git a/plugins/tps/birzha/components/Balance.php b/plugins/tps/birzha/components/Balance.php index acbcd0a75..7728fa0d9 100644 --- a/plugins/tps/birzha/components/Balance.php +++ b/plugins/tps/birzha/components/Balance.php @@ -90,8 +90,9 @@ class Balance extends ComponentBase $newPayment->bank_file = \Input::file('bank_file'); $newPayment->save(); - \Flash::success('Администратор просмотрит ваш документ оплаты, и средства перейдут на ваш баланс. Спасибо'); - return \Redirect::back(); + return [ + '#form-steps' => $this->renderPartial('@payment_finish') + ]; } protected function validateForm($data, $rules) { diff --git a/plugins/tps/birzha/components/Categories.php b/plugins/tps/birzha/components/Categories.php index 88527a45a..47192ddb0 100644 --- a/plugins/tps/birzha/components/Categories.php +++ b/plugins/tps/birzha/components/Categories.php @@ -37,24 +37,25 @@ class Categories extends ComponentBase 'description' => 'Filter active categories only', 'type' => 'checkbox' ], - 'categoryImages' => [ - 'title' => 'Images of categories', - 'description' => 'Ctaegories with images or without them', - 'type' => 'dropdown' - ], 'slug' => [ 'title' => 'Slug', 'description' => 'Category slug', 'default' => '{{ :slug }}', 'type' => 'string', ], + 'renderFeatures' => [ + 'title' => 'Render features', + 'description' => 'How to render', + 'type' => 'dropdown' + ], ]; } - public function getCategoryImagesOptions() { + public function getRenderFeaturesOptions() { return [ 'with_images' => 'With images', - 'without_images' => 'Without images' + 'without_images' => 'Without images', + 'footer' => 'As links in footer' ]; } diff --git a/plugins/tps/birzha/components/ContactForm.php b/plugins/tps/birzha/components/ContactForm.php index cd18ac4d8..5f55b5bec 100644 --- a/plugins/tps/birzha/components/ContactForm.php +++ b/plugins/tps/birzha/components/ContactForm.php @@ -40,8 +40,9 @@ class ContactForm extends ComponentBase $message->subject('Birzha web site contact form'); }); - \Flash::success('Сообщение отправлено'); - return \Redirect::back(); + return [ + '#form-steps' => $this->renderPartial('@message_sent') + ]; } } } \ No newline at end of file diff --git a/plugins/tps/birzha/components/OfferForm.php b/plugins/tps/birzha/components/OfferForm.php index 909f65386..7ac8d85bb 100644 --- a/plugins/tps/birzha/components/OfferForm.php +++ b/plugins/tps/birzha/components/OfferForm.php @@ -86,6 +86,8 @@ class OfferForm extends ComponentBase $product = new Product; } + $product->translateContext('tm'); + $product->name = $data['name_tm']; // Sets a single translated attribute for a language $product->setAttributeTranslated('name', $data['name_ru'], 'ru'); @@ -108,7 +110,10 @@ class OfferForm extends ComponentBase $product->created_at = Carbon::now('Asia/Ashgabat'); $category->products()->save($product); } else { - $product->save(); + // detach from all other categories + $product->categories()->detach(); + // attach to a new category + $category->products()->save($product); } // go to next step - next form @@ -141,13 +146,13 @@ class OfferForm extends ComponentBase 'delivery_term_id' => 'required', 'currency_id' => 'required', 'measure_id' => 'required', - 'new_img' => 'required' + // 'new_img' => 'required' ]; $this->validateForm($data, $rules); // validate if no old images and new images if(!isset($data['new_img']) && !isset($data['old_img'])) { - throw new ValidationException(['no_images' => 'Хотя бы 1 фото должно быть']); + throw new ValidationException(['no_images' => trans('validation.atleast_1_image')]); } // seaparate validation for file type @@ -226,7 +231,7 @@ class OfferForm extends ComponentBase $validator = Validator::make($data, $rules); if($validator->fails()) { - throw new ValidationException(['new_img_type_error' => 'You must upload jpg,png!']); + throw new ValidationException(['new_img_type_error' => trans('validation.image_type', ['image_type' => 'jpg,png'])]); } } @@ -234,7 +239,7 @@ class OfferForm extends ComponentBase $validator = Validator::make($data, $rules); if($validator->fails()) { - throw new ValidationException(['new_img_size_error' => 'Max file size 1 Mb!']); + throw new ValidationException(['new_img_size_error' => trans('validation.image_size', ['size'=> 1])]); } } @@ -247,6 +252,8 @@ class OfferForm extends ComponentBase } protected function fillProduct($data,$attachedProduct) { + $attachedProduct->translateContext('tm'); + $attachedProduct->description = $data['description_tm']; // Sets a single translated attribute for a language $attachedProduct->setAttributeTranslated('description', $data['description_ru'], 'ru'); diff --git a/plugins/tps/birzha/components/Product.php b/plugins/tps/birzha/components/Product.php deleted file mode 100644 index 2b462efb5..000000000 --- a/plugins/tps/birzha/components/Product.php +++ /dev/null @@ -1,19 +0,0 @@ - 'Product Component', - 'description' => 'No description provided yet...' - ]; - } - - public function defineProperties() - { - return []; - } -} diff --git a/plugins/tps/birzha/components/Products.php b/plugins/tps/birzha/components/Products.php deleted file mode 100644 index 9f96073e0..000000000 --- a/plugins/tps/birzha/components/Products.php +++ /dev/null @@ -1,19 +0,0 @@ - 'Products Component', - 'description' => 'No description provided yet...' - ]; - } - - public function defineProperties() - { - return []; - } -} diff --git a/plugins/tps/birzha/components/balance/bank_transfer_pay.htm b/plugins/tps/birzha/components/balance/bank_transfer_pay.htm index 8dd34ed6b..d1ec9e520 100644 --- a/plugins/tps/birzha/components/balance/bank_transfer_pay.htm +++ b/plugins/tps/birzha/components/balance/bank_transfer_pay.htm @@ -1,50 +1,69 @@