Add translations for sign in
This commit is contained in:
parent
44580e7166
commit
9943e6c207
|
@ -1,20 +1,20 @@
|
||||||
- provide(:title, generate_title('Sign In'))
|
- provide(:title, generate_title(t(".title")))
|
||||||
.container
|
.container
|
||||||
.row
|
.row
|
||||||
.col-sm-4.offset-sm-4
|
.col-sm-4.offset-sm-4
|
||||||
= render 'layouts/messages'
|
= render "layouts/messages"
|
||||||
.card.mt-3
|
.card.mt-3
|
||||||
.card-body
|
.card-body
|
||||||
%h1.mb-3.mt-0= t('views.sessions.create')
|
%h1.mb-3.mt-0= t(".title")
|
||||||
= bootstrap_form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|
|
= bootstrap_form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|
|
||||||
|
|
||||||
= f.text_field :login, autofocus: true, label: t('views.settings.account.username')
|
= f.text_field :login, autofocus: true
|
||||||
= f.password_field :password, autocomplete: :off, label: t('views.settings.account.password')
|
= f.password_field :password, autocomplete: :off
|
||||||
|
|
||||||
- if devise_mapping.rememberable?
|
- if devise_mapping.rememberable?
|
||||||
= f.check_box :remember_me
|
= f.check_box :remember_me
|
||||||
|
|
||||||
= f.submit t('views.sessions.create'), class: 'btn btn-primary mt-3 mb-3'
|
= f.primary t("voc.login")
|
||||||
|
|
||||||
= render 'devise/shared/links'
|
= render "devise/shared/links"
|
||||||
= render 'shared/links'
|
= render "shared/links"
|
||||||
|
|
|
@ -444,7 +444,28 @@ en:
|
||||||
destroy:
|
destroy:
|
||||||
success: "Announcement has been deleted successfully."
|
success: "Announcement has been deleted successfully."
|
||||||
error: "Unable to delete announcement."
|
error: "Unable to delete announcement."
|
||||||
|
devise:
|
||||||
|
registrations:
|
||||||
|
edit:
|
||||||
|
title: "Account Settings"
|
||||||
|
new:
|
||||||
|
title: "Sign up"
|
||||||
|
info: "With signing up you accept our %{terms}"
|
||||||
|
sessions:
|
||||||
|
new:
|
||||||
|
title: "Sign in"
|
||||||
|
modal:
|
||||||
|
password:
|
||||||
|
title: "Save account changes"
|
||||||
settings:
|
settings:
|
||||||
|
account:
|
||||||
|
email_confirm: "Currently awaiting confirmation for %{resource}"
|
||||||
|
help:
|
||||||
|
password: "Leave this blank if you don't want to change it"
|
||||||
|
delete:
|
||||||
|
action: "Delete my account"
|
||||||
|
confirm: "Are you sure?"
|
||||||
|
heading: "Unsatisfied?"
|
||||||
profile:
|
profile:
|
||||||
adjust:
|
adjust:
|
||||||
profile_picture: "Adjust your new profile picture"
|
profile_picture: "Adjust your new profile picture"
|
||||||
|
@ -484,9 +505,14 @@ en:
|
||||||
success: :user.update.success
|
success: :user.update.success
|
||||||
error: :user.update.error
|
error: :user.update.error
|
||||||
voc:
|
voc:
|
||||||
|
cancel: "Cancel"
|
||||||
|
close: "Close"
|
||||||
delete: "Delete"
|
delete: "Delete"
|
||||||
edit: "Edit"
|
edit: "Edit"
|
||||||
|
login: "Sign in"
|
||||||
save: "Save changes"
|
save: "Save changes"
|
||||||
|
register: "Sign up"
|
||||||
|
terms: "Terms of Service"
|
||||||
update: "Update"
|
update: "Update"
|
||||||
errors:
|
errors:
|
||||||
base: "An error occurred"
|
base: "An error occurred"
|
||||||
|
|
Loading…
Reference in New Issue