From 772f5693519ea71575e8284a0342584034160a6b Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Mon, 20 Apr 2015 16:40:08 +0300 Subject: [PATCH] Add translated strings for Devise views --- app/views/devise/shared/_links.html.slim | 13 ++++----- config/locales/bg.yml | 34 +++++++++++++++++++++++- 2 files changed, 40 insertions(+), 7 deletions(-) diff --git a/app/views/devise/shared/_links.html.slim b/app/views/devise/shared/_links.html.slim index 6f66289..95d6004 100644 --- a/app/views/devise/shared/_links.html.slim +++ b/app/views/devise/shared/_links.html.slim @@ -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) diff --git a/config/locales/bg.yml b/config/locales/bg.yml index 73ccbf9..eda1e74 100644 --- a/config/locales/bg.yml +++ b/config/locales/bg.yml @@ -137,4 +137,36 @@ bg: invalid: може да съдържа само букви, числа и тирета и не може да започва с тире errors: messages: - improbable_phone: 'не е валиден телефонен номер' \ No newline at end of file + 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: Изпрати \ No newline at end of file