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.', 'failed' => 'These credentials do not match our records.',
'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.',
'verifyYourEmailAddress' => ' - Verify Your Email Address', '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. | 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 <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',
'failed' => 'As credenciais introduzidas não correspondem aos nossos registos.',
'throttle' => 'Demasiadas tentativas de login. Tente novamente em :seconds segundos.',
]; ];

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

@ -5,7 +5,7 @@
<div class="row justify-content-center"> <div class="row justify-content-center">
<div class="col-lg-5"> <div class="col-lg-5">
<div class="card"> <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"> <div class="card-body">
<form method="POST" action="{{ route('register') }}" class="px-md-3"> <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() }}"> <input type="hidden" name="rt" value="{{ (new \App\Http\Controllers\Auth\RegisterController())->getRegisterToken() }}">
<div class="form-group row"> <div class="form-group row">
<div class="col-md-12"> <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> <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')) @if ($errors->has('name'))
@ -26,8 +26,8 @@
<div class="form-group row"> <div class="form-group row">
<div class="col-md-12"> <div class="col-md-12">
<label class="small font-weight-bold text-lighter">Username</label> <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="{{ __('Username') }}" required> <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')) @if ($errors->has('username'))
<span class="invalid-feedback"> <span class="invalid-feedback">
@ -40,7 +40,7 @@
<div class="form-group row"> <div class="form-group row">
<div class="col-md-12"> <div class="col-md-12">
<label class="small font-weight-bold text-lighter">Email</label> <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')) @if ($errors->has('email'))
<span class="invalid-feedback"> <span class="invalid-feedback">
@ -52,8 +52,8 @@
<div class="form-group row"> <div class="form-group row">
<div class="col-md-12"> <div class="col-md-12">
<label class="small font-weight-bold text-lighter">Password</label> <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="{{ __('Password') }}" required> <input id="password" type="password" class="form-control{{ $errors->has('password') ? ' is-invalid' : '' }}" name="password" placeholder="{{ __('auth.password') }}" required>
@if ($errors->has('password')) @if ($errors->has('password'))
<span class="invalid-feedback"> <span class="invalid-feedback">
@ -65,8 +65,8 @@
<div class="form-group row"> <div class="form-group row">
<div class="col-md-12"> <div class="col-md-12">
<label class="small font-weight-bold text-lighter">Confirm Password</label> <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="{{ __('Confirm Password') }}" required> <input id="password-confirm" type="password" class="form-control" name="password_confirmation" placeholder="{{ __('auth.confirm-password') }}" required>
</div> </div>
</div> </div>
@ -75,7 +75,7 @@
<div class="form-check"> <div class="form-check">
<input class="form-check-input" name="agecheck" type="checkbox" value="true" id="ageCheck" required> <input class="form-check-input" name="agecheck" type="checkbox" value="true" id="ageCheck" required>
<label class="form-check-label" for="ageCheck"> <label class="form-check-label" for="ageCheck">
I am at least 16 years old {{ __('auth.age') }}
</label> </label>
</div> </div>
</div> </div>
@ -87,12 +87,12 @@
</div> </div>
@endif @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="form-group row">
<div class="col-md-12"> <div class="col-md-12">
<button type="submit" class="btn btn-primary btn-block py-0 font-weight-bold"> <button type="submit" class="btn btn-primary btn-block py-0 font-weight-bold">
{{ __('Register') }} {{ __('auth.register') }}
</button> </button>
</div> </div>
</div> </div>

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

Loading…
Cancel
Save