summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/locales/en/home.en.yml1
-rw-r--r--lib/extensions/simple_form.rb4
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