Skip to content

Translation issue send-friend in sendphtml #18779

Closed
@Franzld

Description

@Franzld

Preconditions (*)

  1. Magento 2.2.6, , ,
  2. Unix Ubuntu 16.04.5 LTS
  3. php 7.0.30
  4. mysql 5.7.24

Steps to reproduce (*)

  1. install magento 2.2.6 with sample data
  2. add any translation (eg German) with the entry: "Email:,E-Mail:,,"
    Set shop-> config->catalog->"Email to a friend" -> yes
  3. call a Product -> Email to a Friend

Expected result (*)

  1. all labels should been shown right

Actual result (*)

  1. Label "E-Mail" of the invieder is shown wrong like -> "E\u002dMail"

Fixing the issue (*)

/vendor/magento/module-send-friend/view/frontend/templates/send.phtml
remove "escapeJs" in line 34 :
<label for="recipients-email<%- data._index_ %>" class="label"><span><?= $block->escapeJs($block->escapeHtml(__('Email'))) ?></span></label>
change to:
"<label for="recipients-email<%- data._index_ %>" class="label"><span><?= $block->escapeHtmlAttr(__('Email')) ?></span></label>"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Event: squashtoberfestFixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Format is validGate 1 Passed. Automatic verification of issue format passed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions