diff --git a/packages/Webkul/Installer/src/Database/Seeders/Attribute/AttributeSeeder.php b/packages/Webkul/Installer/src/Database/Seeders/Attribute/AttributeSeeder.php index 978ef6d08..6976482cd 100644 --- a/packages/Webkul/Installer/src/Database/Seeders/Attribute/AttributeSeeder.php +++ b/packages/Webkul/Installer/src/Database/Seeders/Attribute/AttributeSeeder.php @@ -20,11 +20,13 @@ public function run($parameters = []) $now = Carbon::now(); + $defaultLocale = $parameters['default_locale'] ?? app()->getLocale(); + DB::table('attributes')->insert([ [ 'id' => '1', 'code' => 'title', - 'name' => 'Title', + 'name' => trans('installer::app.seeders.attributes.title', [], $defaultLocale), 'type' => 'text', 'entity_type' => 'leads', 'lookup_type' => NULL, @@ -39,7 +41,7 @@ public function run($parameters = []) ], [ 'id' => '2', 'code' => 'description', - 'name' => 'Description', + 'name' => trans('installer::app.seeders.attributes.description', [], $defaultLocale), 'type' => 'textarea', 'entity_type' => 'leads', 'lookup_type' => NULL, @@ -54,7 +56,7 @@ public function run($parameters = []) ], [ 'id' => '3', 'code' => 'lead_value', - 'name' => 'Lead Value', + 'name' => trans('installer::app.seeders.attributes.lead-value', [], $defaultLocale), 'type' => 'price', 'entity_type' => 'leads', 'lookup_type' => NULL, @@ -69,7 +71,7 @@ public function run($parameters = []) ], [ 'id' => '4', 'code' => 'lead_source_id', - 'name' => 'Source', + 'name' => trans('installer::app.seeders.attributes.source', [], $defaultLocale), 'type' => 'select', 'entity_type' => 'leads', 'lookup_type' => 'lead_sources', @@ -84,7 +86,7 @@ public function run($parameters = []) ], [ 'id' => '5', 'code' => 'lead_type_id', - 'name' => 'Type', + 'name' => trans('installer::app.seeders.attributes.type', [], $defaultLocale), 'type' => 'select', 'entity_type' => 'leads', 'lookup_type' => 'lead_types', @@ -99,7 +101,7 @@ public function run($parameters = []) ], [ 'id' => '6', 'code' => 'user_id', - 'name' => 'Sales Owner', + 'name' => trans('installer::app.seeders.attributes.sales-owner', [], $defaultLocale), 'type' => 'select', 'entity_type' => 'leads', 'lookup_type' => 'users', @@ -114,7 +116,7 @@ public function run($parameters = []) ], [ 'id' => '7', 'code' => 'expected_close_date', - 'name' => 'Expected Close Date', + 'name' => trans('installer::app.seeders.attributes.expected-close-date', [], $defaultLocale), 'type' => 'date', 'entity_type' => 'leads', 'lookup_type' => NULL, @@ -129,7 +131,7 @@ public function run($parameters = []) ], [ 'id' => '9', 'code' => 'name', - 'name' => 'Name', + 'name' => trans('installer::app.seeders.attributes.name', [], $defaultLocale), 'type' => 'text', 'entity_type' => 'persons', 'lookup_type' => NULL, @@ -144,7 +146,7 @@ public function run($parameters = []) ], [ 'id' => '10', 'code' => 'emails', - 'name' => 'Emails', + 'name' => trans('installer::app.seeders.attributes.emails', [], $defaultLocale), 'type' => 'email', 'entity_type' => 'persons', 'lookup_type' => NULL, @@ -159,7 +161,7 @@ public function run($parameters = []) ], [ 'id' => '11', 'code' => 'contact_numbers', - 'name' => 'Contact Numbers', + 'name' => trans('installer::app.seeders.attributes.contact-numbers', [], $defaultLocale), 'type' => 'phone', 'entity_type' => 'persons', 'lookup_type' => NULL, @@ -174,7 +176,7 @@ public function run($parameters = []) ], [ 'id' => '12', 'code' => 'organization_id', - 'name' => 'Organization', + 'name' => trans('installer::app.seeders.attributes.organization', [], $defaultLocale), 'type' => 'lookup', 'entity_type' => 'persons', 'lookup_type' => 'organizations', @@ -189,7 +191,7 @@ public function run($parameters = []) ], [ 'id' => '13', 'code' => 'name', - 'name' => 'Name', + 'name' => trans('installer::app.seeders.attributes.name', [], $defaultLocale), 'type' => 'text', 'entity_type' => 'organizations', 'lookup_type' => NULL, @@ -204,7 +206,7 @@ public function run($parameters = []) ], [ 'id' => '14', 'code' => 'address', - 'name' => 'Address', + 'name' => trans('installer::app.seeders.attributes.address', [], $defaultLocale), 'type' => 'address', 'entity_type' => 'organizations', 'lookup_type' => NULL, @@ -219,7 +221,7 @@ public function run($parameters = []) ], [ 'id' => '15', 'code' => 'name', - 'name' => 'Name', + 'name' => trans('installer::app.seeders.attributes.name', [], $defaultLocale), 'type' => 'text', 'entity_type' => 'products', 'lookup_type' => NULL, @@ -234,7 +236,7 @@ public function run($parameters = []) ], [ 'id' => '16', 'code' => 'description', - 'name' => 'Description', + 'name' => trans('installer::app.seeders.attributes.description', [], $defaultLocale), 'type' => 'textarea', 'entity_type' => 'products', 'lookup_type' => NULL, @@ -249,7 +251,7 @@ public function run($parameters = []) ], [ 'id' => '17', 'code' => 'sku', - 'name' => 'SKU', + 'name' => trans('installer::app.seeders.attributes.sku', [], $defaultLocale), 'type' => 'text', 'entity_type' => 'products', 'lookup_type' => NULL, @@ -264,7 +266,7 @@ public function run($parameters = []) ], [ 'id' => '18', 'code' => 'quantity', - 'name' => 'Quantity', + 'name' => trans('installer::app.seeders.attributes.quantity', [], $defaultLocale), 'type' => 'text', 'entity_type' => 'products', 'lookup_type' => NULL, @@ -279,7 +281,7 @@ public function run($parameters = []) ], [ 'id' => '19', 'code' => 'price', - 'name' => 'Price', + 'name' => trans('installer::app.seeders.attributes.price', [], $defaultLocale), 'type' => 'text', 'entity_type' => 'products', 'lookup_type' => NULL, @@ -294,7 +296,7 @@ public function run($parameters = []) ], [ 'id' => '20', 'code' => 'user_id', - 'name' => 'Sales Owner', + 'name' => trans('installer::app.seeders.attributes.sales-owner', [], $defaultLocale), 'type' => 'select', 'entity_type' => 'quotes', 'lookup_type' => 'users', @@ -309,7 +311,7 @@ public function run($parameters = []) ], [ 'id' => '21', 'code' => 'subject', - 'name' => 'Subject', + 'name' => trans('installer::app.seeders.attributes.subject', [], $defaultLocale), 'type' => 'text', 'entity_type' => 'quotes', 'lookup_type' => NULL, @@ -324,7 +326,7 @@ public function run($parameters = []) ], [ 'id' => '22', 'code' => 'description', - 'name' => 'Description', + 'name' => trans('installer::app.seeders.attributes.description', [], $defaultLocale), 'type' => 'textarea', 'entity_type' => 'quotes', 'lookup_type' => NULL, @@ -339,7 +341,7 @@ public function run($parameters = []) ], [ 'id' => '23', 'code' => 'billing_address', - 'name' => 'Billing Address', + 'name' => trans('installer::app.seeders.attributes.billing-address', [], $defaultLocale), 'type' => 'address', 'entity_type' => 'quotes', 'lookup_type' => NULL, @@ -354,7 +356,7 @@ public function run($parameters = []) ], [ 'id' => '24', 'code' => 'shipping_address', - 'name' => 'Shipping Address', + 'name' => trans('installer::app.seeders.attributes.shipping-address', [], $defaultLocale), 'type' => 'address', 'entity_type' => 'quotes', 'lookup_type' => NULL, @@ -369,7 +371,7 @@ public function run($parameters = []) ], [ 'id' => '25', 'code' => 'discount_percent', - 'name' => 'Discount Percent', + 'name' => trans('installer::app.seeders.attributes.discount-percent', [], $defaultLocale), 'type' => 'text', 'entity_type' => 'quotes', 'lookup_type' => NULL, @@ -384,7 +386,7 @@ public function run($parameters = []) ], [ 'id' => '26', 'code' => 'discount_amount', - 'name' => 'Discount Amount', + 'name' => trans('installer::app.seeders.attributes.discount-amount', [], $defaultLocale), 'type' => 'price', 'entity_type' => 'quotes', 'lookup_type' => NULL, @@ -399,7 +401,7 @@ public function run($parameters = []) ], [ 'id' => '27', 'code' => 'tax_amount', - 'name' => 'Tax Amount', + 'name' => trans('installer::app.seeders.attributes.tax-amount', [], $defaultLocale), 'type' => 'price', 'entity_type' => 'quotes', 'lookup_type' => NULL, @@ -414,7 +416,7 @@ public function run($parameters = []) ], [ 'id' => '28', 'code' => 'adjustment_amount', - 'name' => 'Adjustment Amount', + 'name' => trans('installer::app.seeders.attributes.adjustment-amount', [], $defaultLocale), 'type' => 'price', 'entity_type' => 'quotes', 'lookup_type' => NULL, @@ -429,7 +431,7 @@ public function run($parameters = []) ], [ 'id' => '29', 'code' => 'sub_total', - 'name' => 'Sub Total', + 'name' => trans('installer::app.seeders.attributes.sub-total', [], $defaultLocale), 'type' => 'price', 'entity_type' => 'quotes', 'lookup_type' => NULL, @@ -444,7 +446,7 @@ public function run($parameters = []) ], [ 'id' => '30', 'code' => 'grand_total', - 'name' => 'Grand Total', + 'name' => trans('installer::app.seeders.attributes.grand-total', [], $defaultLocale), 'type' => 'price', 'entity_type' => 'quotes', 'lookup_type' => NULL, @@ -459,7 +461,7 @@ public function run($parameters = []) ], [ 'id' => '31', 'code' => 'expired_at', - 'name' => 'Expired At', + 'name' => trans('installer::app.seeders.attributes.expired-at', [], $defaultLocale), 'type' => 'date', 'entity_type' => 'quotes', 'lookup_type' => NULL, @@ -474,7 +476,7 @@ public function run($parameters = []) ], [ 'id' => '32', 'code' => 'person_id', - 'name' => 'Person', + 'name' => trans('installer::app.seeders.attributes.person', [], $defaultLocale), 'type' => 'lookup', 'entity_type' => 'quotes', 'lookup_type' => 'persons', diff --git a/packages/Webkul/Installer/src/Database/Seeders/EmailTemplate/EmailTemplateSeeder.php b/packages/Webkul/Installer/src/Database/Seeders/EmailTemplate/EmailTemplateSeeder.php index 6b7a786cf..cdb255e32 100644 --- a/packages/Webkul/Installer/src/Database/Seeders/EmailTemplate/EmailTemplateSeeder.php +++ b/packages/Webkul/Installer/src/Database/Seeders/EmailTemplate/EmailTemplateSeeder.php @@ -20,59 +20,61 @@ public function run($parameters = []) $now = Carbon::now(); + $defaultLocale = $parameters['default_locale'] ?? app()->getLocale(); + DB::table('email_templates')->insert([ [ 'id' => 1, - 'name' => 'Activity created', - 'subject' => 'Activity created: {%activities.title%}', + 'name' => trans('installer::app.seeders.email.activity-created', [], $defaultLocale), + 'subject' => trans('installer::app.seeders.email.activity-created', [], $defaultLocale) .': {%activities.title%}', 'created_at' => $now, 'updated_at' => $now, - 'content' => '

You have a new activity, please find the details bellow:

+ 'content' => '

'. trans('installer::app.seeders.email.new-activity', [], $defaultLocale) .':

Details

- + - + - + - +
Title'. trans('installer::app.seeders.email.title', [], $defaultLocale) .' {%activities.title%}
Type'. trans('installer::app.seeders.email.type', [], $defaultLocale) .' {%activities.type%}
Date'. trans('installer::app.seeders.email.date', [], $defaultLocale) .' {%activities.schedule_from%} to {%activities.schedule_to%}
Participants'. trans('installer::app.seeders.email.participants', [], $defaultLocale) .' {%activities.participants%}
', ], [ 'id' => 2, - 'name' => 'Activity modified', - 'subject' => 'Activity modified: {%activities.title%}', + 'name' => trans('installer::app.seeders.email.activity-modified', [], $defaultLocale), + 'subject' => trans('installer::app.seeders.email.activity-modified', [], $defaultLocale) .': {%activities.title%}', 'created_at' => $now, 'updated_at' => $now, - 'content' => '

This activity has been modified, please find the details bellow:

+ 'content' => '

'. trans('installer::app.seeders.email.new-activity-modified', [], $defaultLocale) .':

Details

- + - + - + - + diff --git a/packages/Webkul/Installer/src/Database/Seeders/Lead/PipelineSeeder.php b/packages/Webkul/Installer/src/Database/Seeders/Lead/PipelineSeeder.php index f24caab72..5fd51dab0 100644 --- a/packages/Webkul/Installer/src/Database/Seeders/Lead/PipelineSeeder.php +++ b/packages/Webkul/Installer/src/Database/Seeders/Lead/PipelineSeeder.php @@ -22,56 +22,58 @@ public function run($parameters = []) $now = Carbon::now(); + $defaultLocale = $parameters['default_locale'] ?? app()->getLocale(); + DB::table('lead_pipelines')->insert([ [ 'id' => 1, - 'name' => 'Default Pipeline', + 'name' => trans('installer::app.seeders.lead.pipeline.default', [], $defaultLocale), 'is_default' => 1, 'created_at' => $now, 'updated_at' => $now, ] ]); - DB::table('lead_pipeline_stages')->insert([ + DB::table('lead_pipeline_stages')->insert($data = [ [ 'id' => 1, 'code' => 'new', - 'name' => 'New', + 'name' => trans('installer::app.seeders.lead.pipeline.pipeline-stages.new', [], $defaultLocale), 'probability' => 100, 'sort_order' => 1, 'lead_pipeline_id' => 1, ], [ 'id' => 2, 'code' => 'follow-up', - 'name' => 'Follow Up', + 'name' => trans('installer::app.seeders.lead.pipeline.pipeline-stages.follow-up', [], $defaultLocale), 'probability' => 100, 'sort_order' => 2, 'lead_pipeline_id' => 1, ], [ 'id' => 3, 'code' => 'prospect', - 'name' => 'Prospect', + 'name' => trans('installer::app.seeders.lead.pipeline.pipeline-stages.prospect', [], $defaultLocale), 'probability' => 100, 'sort_order' => 3, 'lead_pipeline_id' => 1, ], [ 'id' => 4, 'code' => 'negotiation', - 'name' => 'Negotiation', + 'name' => trans('installer::app.seeders.lead.pipeline.pipeline-stages.negotiation', [], $defaultLocale), 'probability' => 100, 'sort_order' => 4, 'lead_pipeline_id' => 1, ], [ 'id' => 5, 'code' => 'won', - 'name' => 'Won', + 'name' => trans('installer::app.seeders.lead.pipeline.pipeline-stages.won', [], $defaultLocale), 'probability' => 100, 'sort_order' => 5, 'lead_pipeline_id' => 1, ], [ 'id' => 6, 'code' => 'lost', - 'name' => 'Lost', + 'name' => trans('installer::app.seeders.lead.pipeline.pipeline-stages.lost', [], $defaultLocale), 'probability' => 0, 'sort_order' => 6, 'lead_pipeline_id' => 1, diff --git a/packages/Webkul/Installer/src/Database/Seeders/Lead/SourceSeeder.php b/packages/Webkul/Installer/src/Database/Seeders/Lead/SourceSeeder.php index 8ecd2c864..ebf1142fe 100644 --- a/packages/Webkul/Installer/src/Database/Seeders/Lead/SourceSeeder.php +++ b/packages/Webkul/Installer/src/Database/Seeders/Lead/SourceSeeder.php @@ -20,30 +20,32 @@ public function run($parameters = []) $now = Carbon::now(); + $defaultLocale = $parameters['default_locale'] ?? app()->getLocale(); + DB::table('lead_sources')->insert([ [ 'id' => 1, - 'name' => 'Email', + 'name' => trans('installer::app.seeders.lead.source.email', [], $defaultLocale), 'created_at' => $now, 'updated_at' => $now, ], [ 'id' => 2, - 'name' => 'Web', + 'name' => trans('installer::app.seeders.lead.source.web', [], $defaultLocale), 'created_at' => $now, 'updated_at' => $now, ], [ 'id' => 3, - 'name' => 'Web Form', + 'name' => trans('installer::app.seeders.lead.source.web-form', [], $defaultLocale), 'created_at' => $now, 'updated_at' => $now, ], [ 'id' => 4, - 'name' => 'Phone', + 'name' => trans('installer::app.seeders.lead.source.phone', [], $defaultLocale), 'created_at' => $now, 'updated_at' => $now, ], [ 'id' => 5, - 'name' => 'Direct', + 'name' => trans('installer::app.seeders.lead.source.direct', [], $defaultLocale), 'created_at' => $now, 'updated_at' => $now, ] diff --git a/packages/Webkul/Installer/src/Database/Seeders/Lead/TypeSeeder.php b/packages/Webkul/Installer/src/Database/Seeders/Lead/TypeSeeder.php index 8f8bdd02d..e7b23b213 100644 --- a/packages/Webkul/Installer/src/Database/Seeders/Lead/TypeSeeder.php +++ b/packages/Webkul/Installer/src/Database/Seeders/Lead/TypeSeeder.php @@ -20,15 +20,17 @@ public function run($parameters = []) $now = Carbon::now(); + $defaultLocale = $parameters['default_locale'] ?? app()->getLocale(); + DB::table('lead_types')->insert([ [ 'id' => 1, - 'name' => 'New Business', + 'name' => trans('installer::app.seeders.lead.type.new-business', [], $defaultLocale), 'created_at' => $now, 'updated_at' => $now, ], [ 'id' => 2, - 'name' => 'Existing Business', + 'name' => trans('installer::app.seeders.lead.type.existing-business', [], $defaultLocale), 'created_at' => $now, 'updated_at' => $now, ] diff --git a/packages/Webkul/Installer/src/Database/Seeders/User/RoleSeeder.php b/packages/Webkul/Installer/src/Database/Seeders/User/RoleSeeder.php index 4647b41e1..8fb1cc00f 100755 --- a/packages/Webkul/Installer/src/Database/Seeders/User/RoleSeeder.php +++ b/packages/Webkul/Installer/src/Database/Seeders/User/RoleSeeder.php @@ -19,10 +19,12 @@ public function run($parameters = []) DB::table('roles')->delete(); + $defaultLocale = $parameters['default_locale'] ?? app()->getLocale(); + DB::table('roles')->insert([ 'id' => 1, - 'name' => 'Administrator', - 'description' => 'Administrator role', + 'name' => trans('installer::app.seeders.user.role.administrator', [], $defaultLocale), + 'description' => trans('installer::app.seeders.user.role.administrator-role', [], $defaultLocale), 'permission_type' => 'all', ]); } diff --git a/packages/Webkul/Installer/src/Database/Seeders/Workflow/WorkflowSeeder.php b/packages/Webkul/Installer/src/Database/Seeders/Workflow/WorkflowSeeder.php index 0f0cd8422..e9ba923f6 100644 --- a/packages/Webkul/Installer/src/Database/Seeders/Workflow/WorkflowSeeder.php +++ b/packages/Webkul/Installer/src/Database/Seeders/Workflow/WorkflowSeeder.php @@ -20,11 +20,13 @@ public function run($parameters = []) $now = Carbon::now(); + $defaultLocale = $parameters['default_locale'] ?? app()->getLocale(); + DB::table('workflows')->insert([ [ 'id' => 1, - 'name' => 'Emails to participants after activity creation', - 'description' => 'Emails to participants after activity creation', + 'name' => trans('installer::app.seeders.workflow.email-to-participants-after-activity-creation', [], $defaultLocale), + 'description' => trans('installer::app.seeders.workflow.email-to-participants-after-activity-creation', [], $defaultLocale), 'entity_type' => 'activities', 'event' => 'activity.create.after', 'condition_type' => 'and', @@ -34,8 +36,8 @@ public function run($parameters = []) 'updated_at' => $now, ], [ 'id' => 2, - 'name' => 'Emails to participants after activity updation', - 'description' => 'Emails to participants after activity updation', + 'name' => trans('installer::app.seeders.workflow.email-to-participants-after-activity-updation', [], $defaultLocale), + 'description' => trans('installer::app.seeders.workflow.email-to-participants-after-activity-updation', [], $defaultLocale), 'entity_type' => 'activities', 'event' => 'activity.update.after', 'condition_type' => 'and', diff --git a/packages/Webkul/Installer/src/Providers/InstallerServiceProvider.php b/packages/Webkul/Installer/src/Providers/InstallerServiceProvider.php index ee8896bd7..1cd72a8ee 100755 --- a/packages/Webkul/Installer/src/Providers/InstallerServiceProvider.php +++ b/packages/Webkul/Installer/src/Providers/InstallerServiceProvider.php @@ -22,6 +22,8 @@ class InstallerServiceProvider extends ServiceProvider */ public function boot() { + $this->loadTranslationsFrom(__DIR__ . '/../Resources/lang', 'installer'); + Event::listen('bagisto.installed', 'Webkul\Installer\Listeners\Installer@installed'); } diff --git a/packages/Webkul/Installer/src/Resources/lang/ar/app.php b/packages/Webkul/Installer/src/Resources/lang/ar/app.php index e69de29bb..e0e1aacd0 100644 --- a/packages/Webkul/Installer/src/Resources/lang/ar/app.php +++ b/packages/Webkul/Installer/src/Resources/lang/ar/app.php @@ -0,0 +1,85 @@ + [ + 'attributes' => [ + 'address' => 'العنوان', + 'adjustment-amount' => 'مبلغ التعديل', + 'billing-address' => 'عنوان الفاتورة', + 'contact-numbers' => 'أرقام الاتصال', + 'description' => 'الوصف', + 'discount-amount' => 'مبلغ الخصم', + 'discount-percent' => 'نسبة الخصم', + 'emails' => 'البريد الإلكتروني', + 'expected-close-date' => 'تاريخ الإغلاق المتوقع', + 'expired-at' => 'تاريخ الانتهاء', + 'grand-total' => 'المجموع الكلي', + 'lead-value' => 'قيمة العميل المحتمل', + 'name' => 'الاسم', + 'organization' => 'المؤسسة', + 'person' => 'الشخص', + 'price' => 'السعر', + 'quantity' => 'الكمية', + 'sales-owner' => 'مالك المبيعات', + 'shipping-address' => 'عنوان الشحن', + 'sku' => 'SKU', + 'source' => 'المصدر', + 'sub-total' => 'المجموع الفرعي', + 'subject' => 'الموضوع', + 'tax-amount' => 'مبلغ الضريبة', + 'title' => 'العنوان', + 'type' => 'النوع', + ], + + 'email' => [ + 'activity-created' => 'تم إنشاء النشاط', + 'activity-modified' => 'تم تعديل النشاط', + 'date' => 'التاريخ', + 'new-activity' => 'لديك نشاط جديد، يرجى العثور على التفاصيل أدناه', + 'new-activity-modified' => 'لديك نشاط جديد معدل، يرجى العثور على التفاصيل أدناه', + 'participants' => 'المشاركون', + 'title' => 'العنوان', + 'type' => 'النوع', + ], + + 'lead' => [ + 'pipeline' => [ + 'default' => 'المسار الافتراضي', + + 'pipeline-stages' => [ + 'follow-up' => 'متابعة', + 'lost' => 'مفقود', + 'negotiation' => 'تفاوض', + 'new' => 'جديد', + 'prospect' => 'احتمال', + 'won' => 'مكتسب', + ], + ], + + 'source' => [ + 'direct' => 'مباشر', + 'email' => 'البريد الإلكتروني', + 'phone' => 'الهاتف', + 'web' => 'الويب', + 'web-form' => 'نموذج الويب', + ], + + 'type' => [ + 'existing-business' => 'عمل قائم', + 'new-business' => 'عمل جديد', + ], + ], + + 'user' => [ + 'role' => [ + 'administrator-role' => 'دور المسؤول', + 'administrator' => 'المسؤول', + ], + ], + + 'workflow' => [ + 'email-to-participants-after-activity-updation' => 'إرسال بريد إلكتروني للمشاركين بعد تحديث النشاط', + 'email-to-participants-after-activity-creation' => 'إرسال بريد إلكتروني للمشاركين بعد إنشاء النشاط', + ], + ], +]; \ No newline at end of file diff --git a/packages/Webkul/Installer/src/Resources/lang/en/app.php b/packages/Webkul/Installer/src/Resources/lang/en/app.php index e69de29bb..d30f44d90 100644 --- a/packages/Webkul/Installer/src/Resources/lang/en/app.php +++ b/packages/Webkul/Installer/src/Resources/lang/en/app.php @@ -0,0 +1,85 @@ + [ + 'attributes' => [ + 'address' => 'Address', + 'adjustment-amount' => 'Adjustment Amount', + 'billing-address' => 'Billing Address', + 'contact-numbers' => 'Contact Numbers', + 'description' => 'Description', + 'discount-amount' => 'Discount Amount', + 'discount-percent' => 'Discount Percent', + 'emails' => 'Emails', + 'expected-close-date' => 'Expected Close Date', + 'expired-at' => 'Expired At', + 'grand-total' => 'Grand Total', + 'lead-value' => 'Lead Value', + 'name' => 'Name', + 'organization' => 'Organization', + 'person' => 'Person', + 'price' => 'Price', + 'quantity' => 'Quantity', + 'sales-owner' => 'Sales Owner', + 'shipping-address' => 'Shipping Address', + 'sku' => 'SKU', + 'source' => 'Source', + 'sub-total' => 'Sub Total', + 'subject' => 'Subject', + 'tax-amount' => 'Tax Amount', + 'title' => 'Title', + 'type' => 'Type', + ], + + 'email' => [ + 'activity-created' => 'Activity created', + 'activity-modified' => 'Activity modified', + 'date' => 'Date', + 'new-activity' => 'You have a new activity, please find the details bellow', + 'new-activity-modified' => 'You have a new activity modified, please find the details bellow', + 'participants' => 'Participants', + 'title' => 'Title', + 'type' => 'Type', + ], + + 'lead' => [ + 'pipeline' => [ + 'default' => 'Default Pipeline', + + 'pipeline-stages' => [ + 'follow-up' => 'Follow Up', + 'lost' => 'Lost', + 'negotiation' => 'Negotiation', + 'new' => 'New', + 'prospect' => 'Prospect', + 'won' => 'Won', + ], + ], + + 'source' => [ + 'direct' => 'Direct', + 'email' => 'Email', + 'phone' => 'Phone', + 'web' => 'Web', + 'web-form' => 'Web Form', + ], + + 'type' => [ + 'existing-business' => 'Existing Business', + 'new-business' => 'New Business', + ], + ], + + 'user' => [ + 'role' => [ + 'administrator-role' => 'Administrator Role', + 'administrator' => 'Administrator', + ], + ], + + 'workflow' => [ + 'email-to-participants-after-activity-updation' => 'Emails to participants after activity updation', + 'email-to-participants-after-activity-creation' => 'Emails to participants after activity creation', + ], + ], +]; diff --git a/packages/Webkul/Installer/src/Resources/lang/tr/app.php b/packages/Webkul/Installer/src/Resources/lang/tr/app.php index e69de29bb..bd8c66ead 100644 --- a/packages/Webkul/Installer/src/Resources/lang/tr/app.php +++ b/packages/Webkul/Installer/src/Resources/lang/tr/app.php @@ -0,0 +1,85 @@ + [ + 'attributes' => [ + 'address' => 'Adres', + 'adjustment-amount' => 'Düzenleme Tutarı', + 'billing-address' => 'Fatura Adresi', + 'contact-numbers' => 'İletişim Numaraları', + 'description' => 'Açıklama', + 'discount-amount' => 'İndirim Tutarı', + 'discount-percent' => 'İndirim Yüzdesi', + 'emails' => 'E-postalar', + 'expected-close-date' => 'Beklenen Kapanış Tarihi', + 'expired-at' => 'Son Kullanma Tarihi', + 'grand-total' => 'Genel Toplam', + 'lead-value' => 'Müşteri Değeri', + 'name' => 'İsim', + 'organization' => 'Kuruluş', + 'person' => 'Kişi', + 'price' => 'Fiyat', + 'quantity' => 'Miktar', + 'sales-owner' => 'Satış Sahibi', + 'shipping-address' => 'Teslimat Adresi', + 'sku' => 'SKU', + 'source' => 'Kaynak', + 'sub-total' => 'Ara Toplam', + 'subject' => 'Konu', + 'tax-amount' => 'Vergi Tutarı', + 'title' => 'Başlık', + 'type' => 'Tür', + ], + + 'email' => [ + 'activity-created' => 'Etkinlik oluşturuldu', + 'activity-modified' => 'Etkinlik değiştirildi', + 'date' => 'Tarih', + 'new-activity' => 'Yeni bir etkinliğiniz var, detaylar aşağıda', + 'new-activity-modified' => 'Yeni bir etkinlik değiştirildi, detaylar aşağıda', + 'participants' => 'Katılımcılar', + 'title' => 'Başlık', + 'type' => 'Tür', + ], + + 'lead' => [ + 'pipeline' => [ + 'default' => 'Varsayılan Boru Hattı', + + 'pipeline-stages' => [ + 'follow-up' => 'Takip', + 'lost' => 'Kaybedildi', + 'negotiation' => 'Müzakere', + 'new' => 'Yeni', + 'prospect' => 'Potansiyel', + 'won' => 'Kazandı', + ], + ], + + 'source' => [ + 'direct' => 'Doğrudan', + 'email' => 'E-posta', + 'phone' => 'Telefon', + 'web' => 'Web', + 'web-form' => 'Web Formu', + ], + + 'type' => [ + 'existing-business' => 'Mevcut İş', + 'new-business' => 'Yeni İş', + ], + ], + + 'user' => [ + 'role' => [ + 'administrator-role' => 'Yönetici Rolü', + 'administrator' => 'Yönetici', + ], + ], + + 'workflow' => [ + 'email-to-participants-after-activity-updation' => 'Etkinlik güncellendikten sonra katılımcılara e-posta gönder', + 'email-to-participants-after-activity-creation' => 'Etkinlik oluşturulduktan sonra katılımcılara e-posta gönder', + ], + ], +]; \ No newline at end of file
Title'. trans('installer::app.seeders.email.title', [], $defaultLocale) .' {%activities.title%}
Type'. trans('installer::app.seeders.email.type', [], $defaultLocale) .' {%activities.type%}
Date'. trans('installer::app.seeders.email.date', [], $defaultLocale) .' {%activities.schedule_from%} to {%activities.schedule_to%}
Participants'. trans('installer::app.seeders.email.participants', [], $defaultLocale) .' {%activities.participants%}