Skip to content

Translation does not work for email invoice_new template item layout  #7426

@ostmond

Description

@ostmond

Preconditions

  1. OS: openSuSE 13.1
  2. Magento 2.1.2 php 5.6.27

Steps to reproduce

  1. create a customized email template by loading invoice_new
  2. create translation csv file in i.e. German under /srv/www/Magento-CE-2.1.1/vendor/magento/language-de_de/de_DE.csv
  3. create invoice and send email

Expected result

  1. All texts in the email are translated to German

Actual result

  1. The texts are translated except the items list in {{layout area="frontend" handle="sales_email_order_invoice_items" invoice=$invoice order=$order}}
  2. It is found that the texts i.e. "Items", "Qty" and "Subtotal" are fixed coded in /srv/www/Magento-CE-2.1.1/vendor/magento/module-sales/view/frontend/templates/email/invoice/items.phtml, which does not follow the translation routine.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions