diff --git a/resources/lang/en/common.php b/resources/lang/en/common.php index c867459a..72349851 100644 --- a/resources/lang/en/common.php +++ b/resources/lang/en/common.php @@ -46,4 +46,8 @@ return [ 'submit' => 'Submit', 'edit' => 'Edit', 'close' => 'Close', + 'whoops' => 'Whoops', + 'hello' => 'Hello', + 'regards' => 'Regards', + 'rightsreserved' => 'All Rights Reserved', ]; diff --git a/resources/lang/en/email.php b/resources/lang/en/email.php new file mode 100644 index 00000000..74e5fc03 --- /dev/null +++ b/resources/lang/en/email.php @@ -0,0 +1,10 @@ + + 'If you’re having trouble clicking the ":actiontext" button, ' . + 'copy and paste the URL below into your web browser:', +]; diff --git a/resources/lang/en/frontend.php b/resources/lang/en/frontend.php index 64501c3e..4c6e449e 100644 --- a/resources/lang/en/frontend.php +++ b/resources/lang/en/frontend.php @@ -6,14 +6,4 @@ return [ 'nodownloads' => 'There are no downloads!', ], - 'emails' => [ - 'whoops' => 'Whoops', - 'hello' => 'Hello', - 'regards' => 'Regards', - 'buttontroubles' => [ - 'If you’re having trouble clicking the ":actiontext" button,', - 'copy and paste the URL below into your web browser:', - ], - 'allrightsreserved' => 'All Rights Reserved', - ], ]; diff --git a/resources/lang/it/common.php b/resources/lang/it/common.php index b0df7cca..328c4688 100644 --- a/resources/lang/it/common.php +++ b/resources/lang/it/common.php @@ -47,4 +47,8 @@ return [ 'submit' => 'Invia', 'edit' => 'Modifica', 'close' => 'Chiudi', + 'whoops' => 'Ops', + 'hello' => 'Ciao', + 'regards' => 'Saluti', + 'rightsreserved' => 'Tutti i Diritti Riservati', ]; diff --git a/resources/lang/it/email.php b/resources/lang/it/email.php new file mode 100644 index 00000000..05c3e248 --- /dev/null +++ b/resources/lang/it/email.php @@ -0,0 +1,10 @@ + + 'Se hai problemi a cliccare il bottone ":actiontext", ' . + 'copia e incolla l\'URL qui sotto nel tuo browser:', +]; diff --git a/resources/lang/it/frontend.php b/resources/lang/it/frontend.php index cc831c1b..f7b52e85 100644 --- a/resources/lang/it/frontend.php +++ b/resources/lang/it/frontend.php @@ -1,21 +1,7 @@ [ - 'whoops' => 'Ops', - 'hello' => 'Ciao', - 'regards' => 'Saluti', - 'buttontroubles' => [ - 'Se hai problemi a cliccare il bottone ":actiontext",', - 'copia e incolla l\'URL qui sotto nel tuo browser:', - ], - 'allrightsreserved' => 'Tutti i Diritti Riservati', - ], - - 'downloads' => [ 'nodownloads' => 'Non ci sono downloads!', ], - ]; diff --git a/resources/views/layouts/default/notifications/email-plain.blade.php b/resources/views/layouts/default/notifications/email-plain.blade.php index f3df0403..9ef9dad3 100644 --- a/resources/views/layouts/default/notifications/email-plain.blade.php +++ b/resources/views/layouts/default/notifications/email-plain.blade.php @@ -3,7 +3,7 @@ if (! empty($greeting)) { echo $greeting, "\n\n"; } else { - echo $level == 'error' ? trans('frontend.emails.whoops').'!' : trans('frontend.emails.hello').',', "\n\n"; + echo $level == 'error' ? __('common.whoops').'!' : __('common.hello').',', "\n\n"; } if (! empty($introLines)) { @@ -18,5 +18,5 @@ if (! empty($outroLines)) { echo implode("\n", $outroLines), "\n\n"; } -echo trans('frontend.emails.regards).',', "\n"; +echo __('common.regards).',', "\n"; echo config('app.name'), "\n"; diff --git a/resources/views/layouts/default/notifications/email.blade.php b/resources/views/layouts/default/notifications/email.blade.php index 8a19016d..2eec10e8 100644 --- a/resources/views/layouts/default/notifications/email.blade.php +++ b/resources/views/layouts/default/notifications/email.blade.php @@ -2,8 +2,8 @@ - - + +