diff --git a/app/controllers/mixins/ems_common_angular.rb b/app/controllers/mixins/ems_common_angular.rb index e9e98b5bc76..688cecaccef 100644 --- a/app/controllers/mixins/ems_common_angular.rb +++ b/app/controllers/mixins/ems_common_angular.rb @@ -199,7 +199,7 @@ def create_ems_button_add else @in_a_form = true ems.errors.each do |field, msg| - add_flash("#{ems.class.human_attribute_name(field)} #{msg}", :error) + add_flash("#{ems.class.human_attribute_name(field, :ui => true)} #{msg}", :error) end drop_breadcrumb(:name => _("Add New %{tables}") % {:tables => ui_lookup(:tables => table_name)}, diff --git a/app/helpers/textual_summary_helper.rb b/app/helpers/textual_summary_helper.rb index 94e2e8409c9..241cc9d47b6 100644 --- a/app/helpers/textual_summary_helper.rb +++ b/app/helpers/textual_summary_helper.rb @@ -16,7 +16,7 @@ def expand_textual_summary(summary, context) result = send("textual_#{summary}") return result if result.kind_of?(Hash) && result[:label] - automatic_label = context.class.human_attribute_name(summary, :default => summary.to_s.titleize) + automatic_label = context.class.human_attribute_name(summary, :default => summary.to_s.titleize, :ui => true) case result when Hash