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

Fix for translated attribute label comparisson. #10739

Merged
merged 1 commit into from
Sep 4, 2017

Conversation

nowszy
Copy link
Contributor

@nowszy nowszy commented Sep 1, 2017

Preconditions

  1. Clean instance of Magento 2.1.8
  2. Store displayed in some foreign languege i.e. pl_PL
  3. Simple product with some attribute visible on product page.

Steps to reproduce

  1. Go to product page.
  2. See attribute label ('none' translated to your foreign language) in the attributes section/

Expected result

  1. 'none' label translated to other languages i.e. polish lang - 'brak' should not be displayed
  2. comparisson in line 37 of app/code/Magento/Catalog/view/frontend/templates/product/view/attribute.phtml is changed to if ($_attributeLabel != __('none')) in order to not display 'none' translated to foreign language

Actual result

  1. In the template app/code/Magento/Catalog/view/frontend/templates/product/view/attribute.phtml line 37 you have followin comparisson: if ($_attributeLabel != 'none') but at this part of code $_attributeLabel is already translated.

Fix for translated attribute label comparisson. Refs magento#10738
@magento-cicd2
Copy link
Contributor

magento-cicd2 commented Sep 1, 2017

CLA assistant check
All committers have signed the CLA.

@nowszy nowszy changed the title Fix for translated attribute label comparisson. Refs #10738 Fix for translated attribute label comparisson. Sep 1, 2017
@ishakhsuvarov ishakhsuvarov added this to the September 2017 milestone Sep 1, 2017
@miguelbalparda miguelbalparda self-assigned this Sep 1, 2017
@miguelbalparda
Copy link
Contributor

I'm processing this as we speak @nowszy, thank you for your contribution!

@korostii
Copy link
Contributor

korostii commented Sep 7, 2017

This should also fix issues #9295, #9161, #9531.

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.

6 participants