Skip to content

Commit

Permalink
Merge pull request #12620 from mzazrivec/nicer_chargeback_rates_right…
Browse files Browse the repository at this point in the history
…_cell_texts

Make the right cell text easier to translate
(cherry picked from commit b31ac4a)

https://bugzilla.redhat.com/show_bug.cgi?id=1396491
  • Loading branch information
Dan Clarizio authored and simaishi committed Jan 6, 2017
1 parent 658a2c5 commit 50ec79a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/controllers/chargeback_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,10 @@ def get_node_info(node)
else
@record = ChargebackRate.find(from_cid(parse_nodetype_and_id(node).last))
@sb[:action] = nil
@right_cell_text = _("%{typ} %{model} \"%{name}\"") % {:typ => @record.rate_type, :model => ui_lookup(:model => "ChargebackRate"), :name => @record.description}
@right_cell_text = case @record.rate_type
when "Compute" then _("Compute Chargeback Rate \"%{name}\"") % {:name => @record.description}
when "Storage" then _("Storage Chargeback Rate \"%{name}\"") % {:name => @record.description}
end
cb_rate_show
end
elsif x_active_tree == :cb_assignments_tree
Expand Down

0 comments on commit 50ec79a

Please sign in to comment.