diff --git a/lib/simple_form/error_notification.rb b/lib/simple_form/error_notification.rb index 0cd0c63dc..d9ce121af 100644 --- a/lib/simple_form/error_notification.rb +++ b/lib/simple_form/error_notification.rb @@ -41,7 +41,7 @@ def translate_error_notification lookups = [] lookups << :"#{object_name}" lookups << :default_message - lookups << "Some errors were found, please take a look:" + lookups << "Please review the problems below:" I18n.t(lookups.shift, :scope => :"simple_form.error_notification", :default => lookups) end end diff --git a/test/form_builder/error_notification_test.rb b/test/form_builder/error_notification_test.rb index 45ba59e03..2acc16ddd 100644 --- a/test/form_builder/error_notification_test.rb +++ b/test/form_builder/error_notification_test.rb @@ -23,7 +23,7 @@ def with_error_notification_for(object, options={}, &block) test 'error notification is generated when the object has some error' do with_error_notification_for @user - assert_select 'p.error_notification', 'Some errors were found, please take a look:' + assert_select 'p.error_notification', 'Please review the problems below:' end test 'error notification uses I18n based on model to generate the notification message' do