-
Notifications
You must be signed in to change notification settings - Fork 356
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
Favor complete ui strings over string concatenation #2765
Favor complete ui strings over string concatenation #2765
Conversation
Checked commit mzazrivec@59a982d with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0 app/helpers/application_helper/button/cockpit_console.rb
|
def platform_supported?(record_type) | ||
if record_type == 'VM' | ||
def platform_supported? | ||
if @record.respond_to?(:current_state) |
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 change is intended? (does not look translation related)
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.
Yes, intended. In the code above, the record_type
argument passed in would either
be _('VM')
or _('Container Node')
. Now that wouldn't really work in non-English locales,
would it?
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.
Makes sense. Thx!
related to #2800 |
…r_string_concatenation Favor complete ui strings over string concatenation (cherry picked from commit 963dbf9)
Gaprindashvili backport details:
|
This PR is addressing a concern / problem expressed by our translators.