From 4a78cefad1b5d7f7ab7747622af9d5543e7cee19 Mon Sep 17 00:00:00 2001 From: Felipe Mateus Date: Sat, 22 Mar 2025 13:47:13 -0300 Subject: [PATCH] translate auth - register - login --- resources/lang/en/auth.php | 28 ++++++++++++++++++ resources/lang/pt/auth.php | 29 +++++++++++++++++-- resources/views/auth/login.blade.php | 16 +++++----- resources/views/auth/register.blade.php | 26 ++++++++--------- resources/views/layouts/partial/nav.blade.php | 8 ++--- 5 files changed, 80 insertions(+), 27 deletions(-) diff --git a/resources/lang/en/auth.php b/resources/lang/en/auth.php index eb30ed0d0..5a772eca0 100644 --- a/resources/lang/en/auth.php +++ b/resources/lang/en/auth.php @@ -16,4 +16,32 @@ return [ 'failed' => 'These credentials do not match our records.', 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', 'verifyYourEmailAddress' => ' - Verify Your Email Address', + 'loginTitle' => 'Account Login', + 'failed' => 'These credentials do not match our records.', + 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', + 'password' => 'Password' , + 'remember' => 'Remember Me', + 'forgot' => 'Forgot Password', + 'login' => 'Login', + + 'register' => 'Register', + 'reset' => 'Password Reset', + + 'name' => 'Name', + 'username' => 'Username', + 'confirm-password' => 'Confirm Password', + + 'age' => 'I am at least 16 years old', + 'terms' => "By signing up, you agree to our Terms of Use and Privacy Policy.", + + 'emailAddress' => "E-Mail Address", + + 'registerTitle' => 'Register a new account', + + 'sendReset' => 'Send Password Reset Link', + 'backLogin' => 'Back to Login', + + 'signInMastodon' => 'Sign-in with Mastodon', + + ]; diff --git a/resources/lang/pt/auth.php b/resources/lang/pt/auth.php index 222a98439..a78dbbfef 100644 --- a/resources/lang/pt/auth.php +++ b/resources/lang/pt/auth.php @@ -12,8 +12,33 @@ return [ | these language lines according to your application's requirements. | */ + 'loginTitle' => 'Acessar conta', + 'failed' => 'As credenciais introduzidas não correspondem aos nossos registos.', + 'throttle' => 'Varias tentativas de login. Tente novamente em :seconds segundos.', + 'password' => 'Senha' , + 'remember' => 'Lembrar-Me', + 'forgot' => 'Esqueceu a senha? ', + 'login' => 'Entrar', + 'reset' => 'Recuperar Senha', + 'register' => 'Cadastrar', + + 'name' => 'Nome', + 'username' => 'Usuário', + 'confirm-password' => 'Confrime a senha', + + 'age' => 'Eu tenho pelo menos 16 anos', + + 'terms' => "Ao Cadastrar, você concorda com nossos termos Termos de Uso e Politica de Privacidade.", + + 'emailAddress' => "Endereço de Email", + + 'registerTitle' => 'Cadastrar uma nova conta', + + 'sendReset' => 'Enviar Link de Recuperação de Senha', + 'backLogin' => 'Back to Login', + + 'signInMastodon' => 'Entrar com Mastodon', + 'verifyYourEmailAddress' => ' - Verifique seu endereço de e-mail', - 'failed' => 'As credenciais introduzidas não correspondem aos nossos registos.', - 'throttle' => 'Demasiadas tentativas de login. Tente novamente em :seconds segundos.', ]; diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php index 0f77f778e..262464ebd 100644 --- a/resources/views/auth/login.blade.php +++ b/resources/views/auth/login.blade.php @@ -7,7 +7,7 @@

- Account Login + {{ __('auth.loginTitle') }}

@@ -25,7 +25,7 @@
- + @if ($errors->has('email')) @@ -45,7 +45,7 @@
- + @if ($errors->has('password')) @@ -56,7 +56,7 @@

- {{ __('Forgot Password') }} + {{ __('auth.forgot') }}

@@ -68,7 +68,7 @@
@@ -90,7 +90,7 @@ @endif @@ -104,7 +104,7 @@
@@ -115,7 +115,7 @@

- Register + {{ __("auth.register")}}

@endif
diff --git a/resources/views/auth/register.blade.php b/resources/views/auth/register.blade.php index 3cb70c7fe..83c336f8b 100644 --- a/resources/views/auth/register.blade.php +++ b/resources/views/auth/register.blade.php @@ -5,7 +5,7 @@
-
{{ __('Register a new account') }}
+
{{ __('auth.registerTitle') }}
@@ -13,7 +13,7 @@
- + @if ($errors->has('name')) @@ -26,8 +26,8 @@
- - + + @if ($errors->has('username')) @@ -40,7 +40,7 @@
- + @if ($errors->has('email')) @@ -52,8 +52,8 @@
- - + + @if ($errors->has('password')) @@ -65,8 +65,8 @@
- - + +
@@ -75,7 +75,7 @@
@@ -87,12 +87,12 @@
@endif -

By signing up, you agree to our Terms of Use and Privacy Policy.

- +

{!! __('auth.terms') !!}

+
diff --git a/resources/views/layouts/partial/nav.blade.php b/resources/views/layouts/partial/nav.blade.php index 56fe7da4a..beb12bf46 100644 --- a/resources/views/layouts/partial/nav.blade.php +++ b/resources/views/layouts/partial/nav.blade.php @@ -18,14 +18,14 @@