Extract translations

This commit is contained in:
Artur Beljajev 2018-08-09 14:43:10 +03:00
parent db0ae116a0
commit 1ff200576e
7 changed files with 13 additions and 10 deletions

View file

@ -1,12 +1,12 @@
.row
.form-signin.col-md-4.center-block.text-center
%h2.form-signin-heading.text-center= t(:log_in_with_mid)
%h2.form-signin-heading.text-center= t '.header'
%hr
= form_for @user, url: registrant_mid_path, auto_html5_validation: false,
html: {class: 'form-signin'} do |f|
= f.text_field :phone, class: 'form-control',
placeholder: t(:phone_no), autocomplete: 'off', required: true
%button.btn.btn-lg.btn-primary.btn-block.js-login{:type => 'submit'}= t(:log_in)
%button.btn.btn-lg.btn-primary.btn-block.js-login{:type => 'submit'}= t '.submit_btn'
- if ['development', 'alpha'].include?(Rails.env)
%div.text-center

View file

@ -1,12 +1,12 @@
.row
.form-signin.col-md-4.center-block.text-center
%h2.form-signin-heading.text-center= t(:log_in_with_mid)
%h2.form-signin-heading.text-center= t '.header'
%hr
= form_for @user, url: registrar_mid_path, auto_html5_validation: false,
html: {class: 'form-signin'} do |f|
= f.text_field :phone, class: 'form-control',
placeholder: t(:phone_no), autocomplete: 'off', required: true
%button.btn.btn-lg.btn-primary.btn-block.js-login{:type => 'submit'}= t('.login_btn')
%button.btn.btn-lg.btn-primary.btn-block.js-login{:type => 'submit'}= t '.submit_btn'
- if ['development', 'alpha'].include?(Rails.env)
%div.text-center

View file

@ -1,6 +1,6 @@
<div class="row">
<div class="form-signin col-md-6 center-block text-center">
<h1 class="form-signin-heading text-center"><%= t(:log_in) %></h1>
<h1 class="form-signin-heading text-center"><%= t '.header_html' %></h1>
<hr>

View file

@ -390,7 +390,6 @@ en:
invoices: 'Invoices'
no_such_user: 'No such user'
phone_no: 'Phone number'
log_in_with_mid: 'Log in with mobile-id'
confirmation_sms_was_sent_to_your_phone_verification_code_is: 'Confirmation sms was sent to your phone. Verification code is %{code}.'
user_signature_is_invalid: 'User signature is invalid'
session_timeout: 'Session timeout'
@ -422,7 +421,6 @@ en:
blank: "Password can't be blank"
username: 'Username'
log_in: 'Log in'
domains: 'Domains'
register: 'Register'
contacts: 'Contacts'

View file

@ -1,7 +1,6 @@
et:
username: 'Kasutajanimi'
password: 'Parool'
log_in: 'Logi sisse'
date:
# Don't forget the nil at the beginning; there's no such thing as a 0th month

View file

@ -5,4 +5,8 @@ en:
header: Log in
hint: >-
Access currently available only to Estonian citizens and e-residents with Estonian ID-card
or Mobile-ID.
or Mobile-ID.
login_mid:
header: Log in with mobile-id
submit_btn: Login

View file

@ -2,6 +2,8 @@ en:
registrar:
sessions:
new:
header_html: Eesti Interneti SA<br>Registrar Portal
submit_btn: Login
login_mid:
login_btn: Login
header: Log in with mobile-id
submit_btn: Login