From ba3e2451b8bce4dad34e8e28855d16d8c26c118b Mon Sep 17 00:00:00 2001 From: elijah Date: Mon, 3 Aug 2015 16:36:54 -0700 Subject: fix missing translations: get help and cancel. --- lib/extensions/simple_form.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3