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 /lib | |
parent | 69379d2dacf3a287998af35a2a99cf4ab6e9a091 (diff) |
fix missing translations: get help and cancel.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/extensions/simple_form.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |