translate auth

- register
- login
pull/5891/head
Felipe Mateus 8 months ago
parent 917f6759fc
commit 4a78cefad1
No known key found for this signature in database
GPG Key ID: 94D494618F214123

@ -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 <a href=\"".route('site.terms')."\" class=\"font-weight-bold text-dark\">Terms of Use</a> and <a href=\"".route('site.privacy')."\" class=\"font-weight-bold text-dark\">Privacy Policy</a>.",
'emailAddress' => "E-Mail Address",
'registerTitle' => 'Register a new account',
'sendReset' => 'Send Password Reset Link',
'backLogin' => 'Back to Login',
'signInMastodon' => 'Sign-in with Mastodon',
];

@ -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' => 'Demasiadas tentativas de login. Tente novamente em :seconds segundos.',
'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 <a href=\"".route('site.terms')."\" class=\"font-weight-bold text-dark\">Termos de Uso</a> e <a href=\"".route('site.privacy')."\" class=\"font-weight-bold text-dark\">Politica de Privacidade</a>.",
'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',
];

@ -7,7 +7,7 @@
<div class="card shadow-none border">
<div class="card-header bg-transparent p-3">
<h4 class="font-weight-bold mb-0 text-center">
Account Login
{{ __('auth.loginTitle') }}
</h4>
</div>
@ -25,7 +25,7 @@
<div class="form-group row mb-0">
<div class="col-md-12">
<label for="email" class="small font-weight-bold text-muted mb-0">Email Address</label>
<label for="email" class="small font-weight-bold text-muted mb-0">{{__("auth.emailAddress")}}</label>
<input id="email" type="email" class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}" name="email" value="{{ old('email') }}" placeholder="{{__('Email')}}" required autofocus>
@if ($errors->has('email'))
@ -45,7 +45,7 @@
<div class="form-group row mb-0">
<div class="col-md-12">
<label for="password" class="small font-weight-bold text-muted mb-0">Password</label>
<label for="password" class="small font-weight-bold text-muted mb-0">{{ __("auth.password")}}</label>
<input id="password" type="password" class="form-control{{ $errors->has('password') ? ' is-invalid' : '' }}" name="password" placeholder="{{__('Password')}}" required>
@if ($errors->has('password'))
@ -56,7 +56,7 @@
<p class="help-text small text-right mb-0">
<a href="{{ route('password.request') }}" class="small text-muted font-weight-bold">
{{ __('Forgot Password') }}
{{ __('auth.forgot') }}
</a>
</p>
</div>
@ -68,7 +68,7 @@
<label>
<input type="checkbox" name="remember" {{ old('remember') ? 'checked' : '' }}>
<span class="font-weight-bold ml-1 text-muted">
{{ __('Remember Me') }}
{{ __('auth.remember') }}
</span>
</label>
</div>
@ -90,7 +90,7 @@
@endif
<button type="submit" class="btn btn-primary btn-block btn-lg font-weight-bold rounded-pill">
{{ __('Login') }}
{{ __('auth.login') }}
</button>
</form>
@ -104,7 +104,7 @@
<div class="form-group row mb-0">
<div class="col-md-12">
<button type="submit" class="btn btn-primary btn-sm btn-block rounded-pill font-weight-bold" style="background: linear-gradient(#6364FF, #563ACC);">
Sign-in with Mastodon
{{__("auth.signInMastodon")}}
</button>
</div>
</div>
@ -115,7 +115,7 @@
<hr>
<p class="text-center font-weight-bold mb-0">
<a href="/register">Register</a>
<a href="/register">{{ __("auth.register")}}</a>
</p>
@endif
</div>

@ -5,7 +5,7 @@
<div class="row justify-content-center">
<div class="col-lg-5">
<div class="card">
<div class="card-header bg-white p-3 text-center font-weight-bold">{{ __('Register a new account') }}</div>
<div class="card-header bg-white p-3 text-center font-weight-bold">{{ __('auth.registerTitle') }}</div>
<div class="card-body">
<form method="POST" action="{{ route('register') }}" class="px-md-3">
@ -13,7 +13,7 @@
<input type="hidden" name="rt" value="{{ (new \App\Http\Controllers\Auth\RegisterController())->getRegisterToken() }}">
<div class="form-group row">
<div class="col-md-12">
<label class="small font-weight-bold text-lighter">Name</label>
<label class="small font-weight-bold text-lighter">{{ __('auth.name') }}</label>
<input id="name" type="text" class="form-control{{ $errors->has('name') ? ' is-invalid' : '' }}" name="name" value="{{ old('name') }}" placeholder="{{ __('Name') }}" required autofocus>
@if ($errors->has('name'))
@ -26,8 +26,8 @@
<div class="form-group row">
<div class="col-md-12">
<label class="small font-weight-bold text-lighter">Username</label>
<input id="username" type="text" class="form-control{{ $errors->has('username') ? ' is-invalid' : '' }}" name="username" value="{{ old('username') }}" placeholder="{{ __('Username') }}" required>
<label class="small font-weight-bold text-lighter">{{ __('auth.username') }}</label>
<input id="username" type="text" class="form-control{{ $errors->has('username') ? ' is-invalid' : '' }}" name="username" value="{{ old('username') }}" placeholder="{{ __('auth.username') }}" required>
@if ($errors->has('username'))
<span class="invalid-feedback">
@ -40,7 +40,7 @@
<div class="form-group row">
<div class="col-md-12">
<label class="small font-weight-bold text-lighter">Email</label>
<input id="email" type="email" class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}" name="email" value="{{ old('email') }}" placeholder="{{ __('E-Mail Address') }}" required>
<input id="email" type="email" class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}" name="email" value="{{ old('email') }}" placeholder="{{ __('auth.emailAddress') }}" required>
@if ($errors->has('email'))
<span class="invalid-feedback">
@ -52,8 +52,8 @@
<div class="form-group row">
<div class="col-md-12">
<label class="small font-weight-bold text-lighter">Password</label>
<input id="password" type="password" class="form-control{{ $errors->has('password') ? ' is-invalid' : '' }}" name="password" placeholder="{{ __('Password') }}" required>
<label class="small font-weight-bold text-lighter">{{ __('auth.password') }}</label>
<input id="password" type="password" class="form-control{{ $errors->has('password') ? ' is-invalid' : '' }}" name="password" placeholder="{{ __('auth.password') }}" required>
@if ($errors->has('password'))
<span class="invalid-feedback">
@ -65,8 +65,8 @@
<div class="form-group row">
<div class="col-md-12">
<label class="small font-weight-bold text-lighter">Confirm Password</label>
<input id="password-confirm" type="password" class="form-control" name="password_confirmation" placeholder="{{ __('Confirm Password') }}" required>
<label class="small font-weight-bold text-lighter">{{ __('auth.confirm-password')}}</label>
<input id="password-confirm" type="password" class="form-control" name="password_confirmation" placeholder="{{ __('auth.confirm-password') }}" required>
</div>
</div>
@ -75,7 +75,7 @@
<div class="form-check">
<input class="form-check-input" name="agecheck" type="checkbox" value="true" id="ageCheck" required>
<label class="form-check-label" for="ageCheck">
I am at least 16 years old
{{ __('auth.age') }}
</label>
</div>
</div>
@ -87,12 +87,12 @@
</div>
@endif
<p class="small">By signing up, you agree to our <a href="{{route('site.terms')}}" class="font-weight-bold text-dark">Terms of Use</a> and <a href="{{route('site.privacy')}}" class="font-weight-bold text-dark">Privacy Policy</a>.</p>
<p class="small">{!! __('auth.terms') !!}</p>
<div class="form-group row">
<div class="col-md-12">
<button type="submit" class="btn btn-primary btn-block py-0 font-weight-bold">
{{ __('Register') }}
{{ __('auth.register') }}
</button>
</div>
</div>

@ -18,14 +18,14 @@
<ul class="navbar-nav ml-auto">
<li>
<a class="nav-link font-weight-bold text-dark" href="/login" title="Login">
{{ __('Login') }}
<a class="nav-link font-weight-bold text-dark" href="/login" title="{{ __('auth.login') }}">
{{ __('auth.login') }}
</a>
</li>
@if(config_cache('pixelfed.open_registration') && in_array(config_cache('system.user_mode'), ['default', 'admin']))
<li>
<a class="ml-3 nav-link font-weight-bold text-dark" href="/register" title="Register">
{{ __('Register') }}
<a class="ml-3 nav-link font-weight-bold text-dark" href="/register" title="__('auth.register') ">
{{ __('auth.register') }}
</a>
</li>
@endif

Loading…
Cancel
Save