diff --git a/Providers/MMFCustomersGroupsServiceProvider.php b/Providers/MMFCustomersGroupsServiceProvider.php index b34874e..282adc2 100644 --- a/Providers/MMFCustomersGroupsServiceProvider.php +++ b/Providers/MMFCustomersGroupsServiceProvider.php @@ -31,6 +31,7 @@ class MMFCustomersGroupsServiceProvider extends ServiceProvider { public function boot() { $this->registerConfig(); $this->registerViews(); + $this->registerTranslations(); $this->loadMigrationsFrom(__DIR__ . '/../Database/Migrations'); $this->hooks(); } @@ -77,6 +78,15 @@ class MMFCustomersGroupsServiceProvider extends ServiceProvider { }, \Config::get('view.paths')), [$sourcePath]), 'mmfcustomersgroups'); } + /** + * Register translations. + * + * @return void + */ + public function registerTranslations() { + $this->loadTranslationsFrom(__DIR__ .'/../Resources/lang', 'mmfcustomersgroups'); + } + /** * Module hooks. */ diff --git a/Resources/lang/en/customers-groups.php b/Resources/lang/en/customers-groups.php new file mode 100644 index 0000000..689acb2 --- /dev/null +++ b/Resources/lang/en/customers-groups.php @@ -0,0 +1,10 @@ + + */ + +return [ + 'add-as-cc' => 'Add in Cc: field', + 'add-as-bcc' => 'Add in Bcc: field', +]; diff --git a/Resources/lang/fr/customers-groups.php b/Resources/lang/fr/customers-groups.php new file mode 100644 index 0000000..d5a8b09 --- /dev/null +++ b/Resources/lang/fr/customers-groups.php @@ -0,0 +1,10 @@ + + */ + +return [ + 'add-as-cc' => 'Ajouter en copie (visible)', + 'add-as-bcc' => 'Ajouter en copie (cachée)', +]; diff --git a/Resources/views/conversations/partials/groups-selection.blade.php b/Resources/views/conversations/partials/groups-selection.blade.php index a28e73b..9ed8246 100644 --- a/Resources/views/conversations/partials/groups-selection.blade.php +++ b/Resources/views/conversations/partials/groups-selection.blade.php @@ -9,7 +9,7 @@