diff --git a/Providers/MMFRestrictedCustomersServiceProvider.php b/Providers/MMFRestrictedCustomersServiceProvider.php index ebf9159..7e0c4bf 100644 --- a/Providers/MMFRestrictedCustomersServiceProvider.php +++ b/Providers/MMFRestrictedCustomersServiceProvider.php @@ -24,7 +24,7 @@ class MMFRestrictedCustomersServiceProvider extends ServiceProvider { public function boot() { $this->registerConfig(); $this->registerViews(); - $this->registerFactories(); + $this->registerTranslations(); $this->loadMigrationsFrom(__DIR__ . '/../Database/Migrations'); $this->commands([ FetchEmails::class, @@ -116,7 +116,7 @@ class MMFRestrictedCustomersServiceProvider extends ServiceProvider { * @return void */ public function registerTranslations() { - $this->loadJsonTranslationsFrom(__DIR__ .'/../Resources/lang'); + $this->loadTranslationsFrom(__DIR__ .'/../Resources/lang', 'mmfrestrictedcustomers'); } /** diff --git a/Resources/lang/en/customers.php b/Resources/lang/en/customers.php new file mode 100644 index 0000000..3bc7abc --- /dev/null +++ b/Resources/lang/en/customers.php @@ -0,0 +1,9 @@ + + */ + +return [ + 'no-mailbox' => 'Warning: no mailbox.', +]; diff --git a/Resources/lang/fr/customers.php b/Resources/lang/fr/customers.php new file mode 100644 index 0000000..29ccf44 --- /dev/null +++ b/Resources/lang/fr/customers.php @@ -0,0 +1,9 @@ + + */ + +return [ + 'no-mailbox' => 'Attention: pas de boîte mail liée.', +]; diff --git a/Resources/views/customers/partials/customers_table.blade.php b/Resources/views/customers/partials/customers_table.blade.php index 378f33e..eaeeac4 100644 --- a/Resources/views/customers/partials/customers_table.blade.php +++ b/Resources/views/customers/partials/customers_table.blade.php @@ -6,7 +6,7 @@ @if ($customer->mailbox_id == null) -

{{ __('Warning: no mailbox') }}

+

{{ __('mmfrestrictedcustomers::customers.no-mailbox') }}

@endif

{{ $customer->first_name }} {{ $customer->last_name }}

{{ $customer->getEmailOrPhone() }}