Skip to content

Commit

Permalink
Merge pull request #3113 from mzazrivec/make_policy_word_translatable
Browse files Browse the repository at this point in the history
Make the "Policy" word translatable by putting it into a gettext fn.
  • Loading branch information
martinpovolny authored Dec 19, 2017
2 parents 98380cf + a7562e6 commit 118fc53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/miq_policy_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -603,9 +603,9 @@ def replace_right_cell(options = {})
_("Adding a new %{model_name} Policy") % {:model_name => model_name}
end
else
options = {:model => "#{model_name} #{@sb[:mode] ? @sb[:mode].capitalize : ""} Policy",
options = {:model => "#{model_name} #{@sb[:mode] ? @sb[:mode].capitalize : ""}",
:name => @policy.description}
right_cell_text = @edit ? _("Editing %{model} \"%{name}\"") % options : _("%{model} \"%{name}\"") % options
right_cell_text = @edit ? _("Editing %{model} \"%{name}\"") % options : _("%{model} Policy \"%{name}\"") % options
if @edit && @edit[:typ] == 'conditions'
right_cell_text += _(" Condition Assignments")
end
Expand Down

0 comments on commit 118fc53

Please sign in to comment.