Skip to content

Prefix and Suffix Translation #29217

@bernd-reindl

Description

@bernd-reindl

Preconditions (*)

  1. M2.3.5-p1, 2.4-develop
  2. English (default) and german store view

Steps to reproduce (*)

  1. Set "Show Prefix" to "Required" in Stores/Configuration/Customers/Customer Configuration/Name and Address Options
  2. Set "Mr.;Ms." for "Prefix Dropdown Options"
  3. Add a german locale file which translate "Mr." to "Herr" and "Ms." to "Frau"
    "Mr.","Herr"
    "Ms.","Frau"

Expected result (*)

  1. Every occurrence of the prefix should translated
    image
    image

Actual result (*)

  1. Only the prefix in frontend address form is translated

vendor/magento/module-customer/view/frontend/templates/widget/name.phtml
image

  1. Other occurrence are not translated

image
image
image

So i have added the translation to prefix and suffix in this files:

Magento\Customer\Helper\View::getCustomerName()
image

Magento\Customer\Block\Address\Renderer\DefaultRenderer::renderArray()
image

Magento\Customer\Model\Options::prepareNamePrefixSuffixOptions()
image

Magento\Customer\Model\Address\AbstractAddress::getName()
image

Magento\Sales\Model\Order\Address::getName()
image


Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • [x ] Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Labels

Component: TranslationEvent: dmcdindia2020Issue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentPriority: P3May be fixed according to the position in the backlog.Progress: doneReported on 2.3.5-p1Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S3Affects non-critical data or functionality and does not force users to employ a workaround.Triage: DoneHas been reviewed and prioritized during Triage with Product Managers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions