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.
(cherry picked from commit 118fc53)

https://bugzilla.redhat.com/show_bug.cgi?id=1530760
  • Loading branch information
martinpovolny authored and simaishi committed Jan 3, 2018
1 parent e721bd8 commit 0d5ea92
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 0d5ea92

Please sign in to comment.