-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate model display names from locale/en.yml to plugin #126
Migrate model display names from locale/en.yml to plugin #126
Conversation
@@ -1,4 +1,8 @@ | |||
module ManageIQ::Providers | |||
class Lenovo::PhysicalInfraManager::PhysicalServer < ::PhysicalServer | |||
end | |||
|
|||
def self.display_name(number = 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be defined inside the PhysicalServer Class rather then inside the module
20a4b11
to
dea2c0a
Compare
This pull request is not mergeable. Please rebase and repush. |
@mzazrivec can you rebase? |
@felipedf did @mzazrivec address your concerns? |
dea2c0a
to
36f7efd
Compare
@agrare Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This pull request is not mergeable. Please rebase and repush. |
36f7efd
to
6584f21
Compare
Can this be merged please? (seeing it's approved) |
Checked commit mzazrivec@6584f21 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
This is a continuation of the work started in ManageIQ/manageiq#16596 where we want to migrate display model names from locale/en.yml into particular models, where we'll use standard gettext. Main goal here is to make this one aspect of our application pluggable.
Core PR: ManageIQ/manageiq#16836