Magento2: [2.1] "none" is not meant to be translated?

Created on 29 Jul 2016  路  8Comments  路  Source: magento/magento2

If one translates the word "none" to anything else, the product page attribute titles are printed although they should be hidden, because of the following line of code: <?php if ($_attributeLabel != 'none'): ?>.

https://github.com/magento/magento2/blob/2.1/app/code/Magento/Catalog/view/frontend/templates/product/view/attribute.phtml#L37

Preconditions

  1. Magento 2.1

    Steps to reproduce

  2. Translate the word "none" to anything else

    Expected result

  3. Product attribute title should not be visible

    Actual result

  4. Product attribute title is visible and shows the translated version of "none"

Catalog Format is valid bug report

All 8 comments

馃憤 Experienced this as well

We had the same issue.

Should be removed translate="true" in:

<argument name="at_label" translate="true" xsi:type="string">none</argument>

from this layout file: app/code/Magento/Catalog/view/frontend/layout/catalog_product_view.xml.


As temporary solution we can extend catalog_product_view.xml and add this:

<referenceBlock name="product.info.overview">
  <arguments>
    <argument name="at_label" xsi:type="string">none</argument>
  </arguments>
</referenceBlock>

@rasmuswikman issue is fixed in the latest develop

@vrann Are the commit references?

@Ctucker9233 this is the PR https://github.com/magento/magento2/pull/6257

@vrann Seeing this in Magento 2.1.8 also. Can we reopen this issue to keep track?

Was this page helpful?
0 / 5 - 0 ratings