Skip to content

Commit

Permalink
Merge pull request #557 from mzazrivec/add_missing_gettext_to_invento…
Browse files Browse the repository at this point in the history
…ry_parser

Add missing gettext to inventory parser

(cherry picked from commit 631489c)
  • Loading branch information
agrare authored and simaishi committed Mar 20, 2020
1 parent 2701532 commit ecc6e9b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,8 @@ def parse_resource_pool(object, kind, props)
cached_parent = cache.find(parent) if parent
parent_model = persister.vim_class_to_collection(parent).base_class_name

"Default for #{Dictionary.gettext(parent_model, :type => :model, :notfound => :titleize)} #{cached_parent[:name]}"
_("Default for %{parent_type} %{parent_name}") % {:parent_type => Dictionary.gettext(parent_model, :type => :model, :notfound => :titleize),
:parent_name => cached_parent[:name]}
else
CGI.unescape(props[:name])
end
Expand Down

0 comments on commit ecc6e9b

Please sign in to comment.