diff options
author | elijah <elijah@riseup.net> | 2015-08-03 16:36:54 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2015-08-03 16:36:54 -0700 |
commit | ba3e2451b8bce4dad34e8e28855d16d8c26c118b (patch) | |
tree | 30065d1655a0d688ad0461d67509ac1d6327573a | |
parent | 69379d2dacf3a287998af35a2a99cf4ab6e9a091 (diff) |
fix missing translations: get help and cancel.
-rw-r--r-- | config/locales/en/home.en.yml | 1 | ||||
-rw-r--r-- | lib/extensions/simple_form.rb | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/config/locales/en/home.en.yml b/config/locales/en/home.en.yml index d1e74eb..88a50a5 100644 --- a/config/locales/en/home.en.yml +++ b/config/locales/en/home.en.yml @@ -6,3 +6,4 @@ en: login_info: "Log in to change your account settings, create support tickets, and manage payments." signup_info: "Create a new user account. For higher security, we recommend you create your account via the Bitmask application instead." support_info: "Can't login? Create a new support ticket anonymously." + get_help: "Get Help"
\ No newline at end of file diff --git a/lib/extensions/simple_form.rb b/lib/extensions/simple_form.rb index f28e18f..f255917 100644 --- a/lib/extensions/simple_form.rb +++ b/lib/extensions/simple_form.rb @@ -6,7 +6,7 @@ module WrappedButton args.unshift :loading args << options if cancel = options.delete(:cancel) - cancel_link = template.link_to I18n.t('simple_form.buttons.cancel'), + cancel_link = template.link_to I18n.t('simple_form.buttons.cancel', :default => :cancel), cancel, class: :btn button(*args, &block) + ' ' + cancel_link else @@ -20,7 +20,7 @@ SimpleForm::FormBuilder.send :include, WrappedButton module LoadingButton def loading_button(*args, &block) options = args.extract_options! - options[:"data-loading-text"] = I18n.t('simple_form.buttons.loading') + options[:"data-loading-text"] = I18n.t('simple_form.buttons.loading', :default => :loading) args << options button_button(*args, &block) end |