From 1045fc5059284ee33531c60092d4ebd8651ad048 Mon Sep 17 00:00:00 2001 From: Matthias Niess Date: Thu, 1 Mar 2018 14:39:40 +0100 Subject: [PATCH] Make auth scaffolding translatable (#23342) The auth scaffolding has hardcoded english strings. These can be easily made translatable by using the __() helper and the new feature to use translation strings in a JSON file. This enables (along with translatable mailables) will allow easy creation of language packages. --- .../Auth/Console/stubs/make/views/auth/login.stub | 12 ++++++------ .../stubs/make/views/auth/passwords/email.stub | 6 +++--- .../stubs/make/views/auth/passwords/reset.stub | 10 +++++----- .../Auth/Console/stubs/make/views/auth/register.stub | 12 ++++++------ .../Auth/Console/stubs/make/views/layouts/app.stub | 6 +++--- 5 files changed, 23 insertions(+), 23 deletions(-) diff --git a/src/Illuminate/Auth/Console/stubs/make/views/auth/login.stub b/src/Illuminate/Auth/Console/stubs/make/views/auth/login.stub index 1c5e4fdeabcd..984e9abb5256 100644 --- a/src/Illuminate/Auth/Console/stubs/make/views/auth/login.stub +++ b/src/Illuminate/Auth/Console/stubs/make/views/auth/login.stub @@ -5,14 +5,14 @@
-
Login
+
{{ __('Login') }}
@csrf
- +
@@ -26,7 +26,7 @@
- +
@@ -43,7 +43,7 @@
@@ -52,11 +52,11 @@ diff --git a/src/Illuminate/Auth/Console/stubs/make/views/auth/passwords/email.stub b/src/Illuminate/Auth/Console/stubs/make/views/auth/passwords/email.stub index 5406cc25a5d4..4d4690073b2b 100644 --- a/src/Illuminate/Auth/Console/stubs/make/views/auth/passwords/email.stub +++ b/src/Illuminate/Auth/Console/stubs/make/views/auth/passwords/email.stub @@ -5,7 +5,7 @@
-
Reset Password
+
{{ __('Reset Password') }}
@if (session('status')) @@ -18,7 +18,7 @@ @csrf
- +
@@ -34,7 +34,7 @@
diff --git a/src/Illuminate/Auth/Console/stubs/make/views/auth/passwords/reset.stub b/src/Illuminate/Auth/Console/stubs/make/views/auth/passwords/reset.stub index f1bc8db557b1..b7cc7691e0ef 100644 --- a/src/Illuminate/Auth/Console/stubs/make/views/auth/passwords/reset.stub +++ b/src/Illuminate/Auth/Console/stubs/make/views/auth/passwords/reset.stub @@ -5,7 +5,7 @@
-
Reset Password
+
{{ __('Reset Password') }}
@@ -14,7 +14,7 @@
- +
@@ -28,7 +28,7 @@
- +
@@ -42,7 +42,7 @@
- +
@@ -57,7 +57,7 @@
diff --git a/src/Illuminate/Auth/Console/stubs/make/views/auth/register.stub b/src/Illuminate/Auth/Console/stubs/make/views/auth/register.stub index 388eff873670..60bdf664e7fc 100644 --- a/src/Illuminate/Auth/Console/stubs/make/views/auth/register.stub +++ b/src/Illuminate/Auth/Console/stubs/make/views/auth/register.stub @@ -5,14 +5,14 @@
-
Register
+
{{ __('Register') }}
@csrf
- +
@@ -26,7 +26,7 @@
- +
@@ -40,7 +40,7 @@
- +
@@ -54,7 +54,7 @@
- +
@@ -64,7 +64,7 @@
diff --git a/src/Illuminate/Auth/Console/stubs/make/views/layouts/app.stub b/src/Illuminate/Auth/Console/stubs/make/views/layouts/app.stub index 2b381365bde9..b85528e3243f 100644 --- a/src/Illuminate/Auth/Console/stubs/make/views/layouts/app.stub +++ b/src/Illuminate/Auth/Console/stubs/make/views/layouts/app.stub @@ -34,8 +34,8 @@