Skip to content

Commit

Permalink
Merge pull request ManageIQ#218 from mzazrivec/migrate_display_names_…
Browse files Browse the repository at this point in the history
…for_models

Migrate model display names from locale/en.yml to plugin
  • Loading branch information
Mooli Tayer authored Jan 21, 2018
2 parents 5597f62 + 626e97a commit 85f2e02
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/manageiq/providers/kubernetes/container_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,8 @@ def self.raw_connect(hostname, port, options)
def self.event_monitor_class
ManageIQ::Providers::Kubernetes::ContainerManager::EventCatcher
end

def self.display_name(number = 1)
n_('Container Provider (Kubernetes)', 'Container Providers (Kubernetes)', number)
end
end
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
class ManageIQ::Providers::Kubernetes::ContainerManager::ContainerGroup < ::ContainerGroup
alias_attribute :pod_uid, :ems_ref

def self.display_name(number = 1)
n_('Pod (Kubernetes)', 'Pods (Kubernetes)', number)
end
end

0 comments on commit 85f2e02

Please sign in to comment.