Add translated strings for Devise views

This commit is contained in:
Petko Bordjukov 2015-04-20 16:40:08 +03:00
parent 97aeae12a3
commit 772f569351
2 changed files with 40 additions and 7 deletions

View File

@ -1,23 +1,24 @@
br
- if controller_name != 'sessions'
= link_to t(:enter), new_session_path(resource_name)
= link_to t('sessions.sign_in'), new_session_path(resource_name)
br
- if devise_mapping.registerable? && controller_name != 'registrations'
= link_to t(:registration), new_registration_path(resource_name)
= link_to t('registrations.sign_up'), new_registration_path(resource_name)
br
- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations'
= link_to t(:lostpass), new_password_path(resource_name)
= link_to t('passwords.forgotten_password'), new_password_path(resource_name)
br
- if devise_mapping.confirmable? && controller_name != 'confirmations'
= link_to t(:did_not_get_confirmation), new_confirmation_path(resource_name)
= link_to t('confirmations.did_not_receive_confirmation_instructions'), new_confirmation_path(resource_name)
br
- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks'
= link_to t(:did_not_get_unlock), new_unlock_path(resource_name)
= link_to t('unlocks.did_not_receive_unlock_instructions'), new_unlock_path(resource_name)
br
- if devise_mapping.omniauthable?
- resource_class.omniauth_providers.each do |provider|
= link_to t(:login_with, with: @provider.to_s.titleize), omniauth_authorize_path(resource_name, provider)
= link_to t('sessions.sign_in_with', provider: provider.to_s.titleize), omniauth_authorize_path(resource_name, provider)

View File

@ -138,3 +138,35 @@ bg:
errors:
messages:
improbable_phone: 'не е валиден телефонен номер'
registrations:
sign_up: Регистрация
sign_me_up: Регистрирай ме
minimum_characters: "най-малко %{minimum} символа"
edit_account: Редакция на акаунт
leave_blank_if_you_do_not_want_to_change: оставете празно, ако не искате да я променяте
we_need_your_current_password: нуждаем се от сегашната Ви парола, за да потвърдим промените
update: Промени
account_cancelation: Изтриване на акаунт
unhappy: Не Сте щастливи?
cancel_my_account: Изтрий акаунта ми
are_you_sure: Сигурни ли Сте, че искате да изтриете регистрацията си?
add_phone_number: Добави телефонен номер
passwords:
forgotten_password: Забравена парола
send_instructions: Изпрати инструкции
change_your_password: Променете паролата си
new_password: Нова парола
confirm_your_new_password: Потвърждение на новата парола
sessions:
sign_in: Влез
sign_in_heading: Вход
remember_me: Запомни ме
sign_in_with: "Влез с %{provider}"
confirmations:
resend_confirmation: Изпращане на Email за потвърждение
resend: Изпрати
did_not_receive_confirmation_instructions: Не сте получили инструкции за потвърждение?
unlocks:
did_not_receive_unlock_instructions: Не сте получили инструкции за отключване?
resend_unlock_instructions: Изпращане на инструкции за отключване
resend: Изпрати