Skip to content

Commit

Permalink
EmsCommonHelper: don't translate audit messages
Browse files Browse the repository at this point in the history
  • Loading branch information
mzazrivec committed Nov 21, 2018
1 parent cab9e3d commit 88cd254
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/controllers/ems_common_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ def add_success_audit(emss, task)
:model => _(table_name.humanize),
:models => _(table_name.humanize.pluralize),
}
msg = n_("'%{task}' successfully initiated for %{model}",
"'%{task}' successfully initiated for %{models}", emss.length) % msg_params
msg = if emss.length == 1
"'%{task}' successfully initiated for %{model}" % msg_params
else
"'%{task}' successfully initiated for %{models}" % msg_params
end
audit = {
:userid => session[:userid],
:event => "#{table_name}_#{task}",
Expand Down

0 comments on commit 88cd254

Please sign in to comment.