1
0
mirror of https://git.pleroma.social/sjw/pleroma-fe.git synced 2024-11-15 13:46:25 +01:00

updated localization

This commit is contained in:
Maksim Pechnikov 2019-05-23 21:26:26 +03:00
parent 54c0262c00
commit 291da74630
7 changed files with 102 additions and 110 deletions

View File

@ -2,6 +2,10 @@
<div class="login panel panel-default">
<!-- Default panel contents -->
<div class="panel-heading">
{{$t(`login.heading.${loginForm}`)}}
</div>
<component
:is="loginForm"
@change-form="setForm"

View File

@ -1,37 +1,32 @@
<template>
<div>
<div class="panel-heading">
{{$t('login.login')}}
</div>
<div class="panel-body">
<form class='login-form' @submit.prevent='submit'>
<div class='form-group'>
<label for='username'>{{$t('login.username')}}</label>
<input :disabled="loggingIn" v-model='user.username'
class='form-control' id='username'
:placeholder="$t('login.placeholder')">
</div>
<div class='form-group'>
<label for='password'>{{$t('login.password')}}</label>
<input :disabled="loggingIn" v-model='user.password'
class='form-control' id='password' type='password'>
</div>
<div class="panel-body">
<form class='login-form' @submit.prevent='submit'>
<div class='form-group'>
<label for='username'>{{$t('login.username')}}</label>
<input :disabled="loggingIn" v-model='user.username'
class='form-control' id='username'
:placeholder="$t('login.placeholder')">
</div>
<div class='form-group'>
<label for='password'>{{$t('login.password')}}</label>
<input :disabled="loggingIn" v-model='user.password'
class='form-control' id='password' type='password'>
</div>
<div class='form-group'>
<div class='login-bottom'>
<div>
<router-link :to="{name: 'registration'}"
v-if='registrationOpen'
class='register'>{{$t('login.register')}}
</router-link>
</div>
<button :disabled="loggingIn" type='submit' class='btn btn-default'>
{{$t('login.login')}}
</button>
<div class='form-group'>
<div class='login-bottom'>
<div>
<router-link :to="{name: 'registration'}"
v-if='registrationOpen'
class='register'>{{$t('login.register')}}
</router-link>
</div>
<button :disabled="loggingIn" type='submit' class='btn btn-default'>
{{$t('login.login')}}
</button>
</div>
</form>
</div>
</div>
</form>
</div>
</template>
<script src="./password_form.js" ></script>
<script src="./password_form.js"></script>

View File

@ -1,33 +1,27 @@
<template>
<div>
<div class="panel-heading">
{{$t('login.two_factor_recovery')}}
</div>
<div class="panel-body">
<form class='login-form' @submit.prevent='submit'>
<div class='form-group'>
<label for='code'>
{{$t('login.recovery_code')}}
</label>
<input v-model='code' class='form-control' id='code'>
</div>
<div class="panel-body">
<form class='login-form' @submit.prevent='submit'>
<div class='form-group'>
<label for='code'>
{{$t('login.recovery_code')}}
</label>
<input v-model='code' class='form-control' id='code'>
</div>
<div class='form-group'>
<div class='login-bottom'>
<div>
<a href="#" @click.prevent="gotoOtp">
{{$t('login.enter_two_factor_code')}}
</a>
</div>
<button type='submit' class='btn btn-default'>
{{$t('login.verify')}}
</button>
<div class='form-group'>
<div class='login-bottom'>
<div>
<a href="#" @click.prevent="gotoOtp">
{{$t('login.enter_two_factor_code')}}
</a>
</div>
<button type='submit' class='btn btn-default'>
{{$t('login.verify')}}
</button>
</div>
</div>
</form>
</div>
</form>
</div>
</template>
<script src="./recovery_form.js" ></script>

View File

@ -1,30 +1,24 @@
<template>
<div>
<div class="panel-heading">
{{$t('login.login')}}
</div>
<div class="panel-body">
<form class='login-form' @submit.prevent='submit'>
<div class="form-group">
<p>{{$t('login.description')}}</p>
</div>
<div class="panel-body">
<form class='login-form' @submit.prevent='submit'>
<div class="form-group">
<p>{{$t('login.description')}}</p>
</div>
<div class='form-group'>
<div class='login-bottom'>
<div>
<router-link :to="{name: 'registration'}"
v-if='registrationOpen'
class='register'>{{$t('login.register')}}
</router-link>
</div>
<button :disabled="loggingIn" type='submit' class='btn btn-default'>
{{$t('login.login')}}
</button>
<div class='form-group'>
<div class='login-bottom'>
<div>
<router-link :to="{name: 'registration'}"
v-if='registrationOpen'
class='register'>{{$t('login.register')}}
</router-link>
</div>
<button :disabled="loggingIn" type='submit' class='btn btn-default'>
{{$t('login.login')}}
</button>
</div>
</form>
</div>
</div>
</form>
</div>
</template>

View File

@ -1,32 +1,26 @@
<template>
<div>
<div class="panel-heading">
{{$t('login.two_factor_authentication')}}
</div>
<div class="panel-body">
<form class='login-form' @submit.prevent='submit'>
<div class='form-group'>
<label for='code'>
{{$t('login.authentication_code')}}
</label>
<input v-model='code' class='form-control' id='code'>
</div>
<div class="panel-body">
<form class='login-form' @submit.prevent='submit'>
<div class='form-group'>
<label for='code'>
{{$t('login.authentication_code')}}
</label>
<input v-model='code' class='form-control' id='code'>
</div>
<div class='form-group'>
<div class='login-bottom'>
<div>
<a href="#" @click.prevent="gotoRecoveryCodes">
{{$t('login.enter_recovery_code')}}
</a>
</div>
<button type='submit' class='btn btn-default'>
{{$t('login.verify')}}
</button>
<div class='form-group'>
<div class='login-bottom'>
<div>
<a href="#" @click.prevent="gotoRecoveryCodes">
{{$t('login.enter_recovery_code')}}
</a>
</div>
<button type='submit' class='btn btn-default'>
{{$t('login.verify')}}
</button>
</div>
</form>
</div>
</div>
</form>
</div>
</template>
<script src="./totp_form.js"></script>

View File

@ -53,12 +53,16 @@
"username": "Username",
"hint": "Log in to join the discussion",
"verify": "Verify",
"two_factor_authentication": "Two-factor authentication",
"authentication_code": "Authentication code",
"enter_recovery_code": "Enter a recovery code",
"two_factor_recovery": "Two-factor recovery",
"enter_two_factor_code": "Enter a two-factor code",
"recovery_code": "Recovery code"
"recovery_code": "Recovery code",
"heading" : {
"PasswordForm" : "Log in",
"TokenForm" : "Log in",
"TotpForm" : "Two-factor authentication",
"RecoveryForm" : "Two-factor recovery"
}
},
"media_modal": {
"previous": "Previous",

View File

@ -22,9 +22,16 @@
"register": "Зарегистрироваться",
"username": "Имя пользователя",
"verify": "Проверить",
"2factor_authentication": "Двухфакторная аутентификация",
"2factor_authentication_code": "Код аутентификации"
"authentication_code": "Код аутентификации",
"enter_recovery_code": "Ввести код восстановления",
"enter_two_factor_code": "Ввести код аутентификации",
"recovery_code": "Код восстановления",
"heading" : {
"PasswordForm" : "Log in",
"TokenForm" : "Log in",
"TotpForm" : "Двухфакторная аутентификация",
"RecoveryForm" : "Two-factor recovery"
}
},
"nav": {
"back": "Назад",