Skip to content
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

Conversation

mzazrivec
Copy link
Contributor

@mzazrivec mzazrivec commented Nov 20, 2017

This PR is addressing a concern / problem expressed by our translators.

@mzazrivec mzazrivec changed the title Favor complete ui string over string concatenation Favor complete ui strings over string concatenation Nov 20, 2017
@miq-bot
Copy link
Member

miq-bot commented Nov 20, 2017

Checked commit mzazrivec@59a982d with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 3 offenses detected

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)

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)

Copy link
Contributor Author

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?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense. Thx!

@ohadlevy
Copy link
Member

related to #2800

@martinpovolny martinpovolny merged commit 963dbf9 into ManageIQ:master Nov 23, 2017
@martinpovolny martinpovolny added this to the Sprint 74 Ending Nov 27, 2017 milestone Nov 23, 2017
simaishi pushed a commit that referenced this pull request Nov 27, 2017
…r_string_concatenation

Favor complete ui strings over string concatenation
(cherry picked from commit 963dbf9)
@simaishi
Copy link
Contributor

Gaprindashvili backport details:

$ git log -1
commit 3df73815f65e3424acde0c3014282ae15450163c
Author: Martin Povolny <mpovolny@redhat.com>
Date:   Thu Nov 23 09:10:13 2017 +0100

    Merge pull request #2765 from mzazrivec/favor_complete_ui_strings_over_string_concatenation
    
    Favor complete ui strings over string concatenation
    (cherry picked from commit 963dbf96a36ea23028ef1e37b199debc2344f059)

@mzazrivec mzazrivec deleted the favor_complete_ui_strings_over_string_concatenation branch February 22, 2018 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants