UPSTREAM FIX

magento2-40100: Order cancellation modal title not being translatable

Community fix magento2-40100 merged into magento/magento2 on 2025-09-29, released in 2.4.9; applies cleanly to 17 releases from 2.4.7 to 2.4.8-p5.

Fixes the order cancellation modal title not being translatable edited

Pull request title
Order Cancellation Modal Title Missing Translation
Pull request
magento/magento2#40100
Issues
#40098 human
Author
@mohaelmrabet
Merged
2025-09-29
Fixed in
2.4.9
Reported on
2.4.7-p5
Categories
Customer, Order/Checkout
Components
magento/module-order-cancellation-ui

Labels

Area
Account
Component
Sales
Priority
P2
Severity
—
Reported on (labels)
2.4.7-p5

Issue

Title and steps come from the upstream issue and pull request.

Description

The modal title uses a hardcoded string instead of a translation function

Steps to reproduce

1. Create an account and log in.
1. Place an order using a payment method that allows order cancellation.
1. Go to the "My Orders" tab in the customer account area.
1. Click the "Cancel Order" button for an eligible order.
1. Observe that the Order Cancellation modal displays a title that is not translated (hardcoded as "Cancel Order" instead of using a translation function).

Expected result

There is a possibility to translate the modal title

Actual result

The modal title uses a hardcoded string instead of a translation function

Taken from the upstream issue.

Code match per tag

Each tag was checked with git apply --check against that tag's files. A clean match means the change applies; it is not a test result. Tags that already contain the fix are marked.

LineCode match per tagTests
2.4.6
2.4.6 file-missing 2.4.6-p1 file-missing 2.4.6-p2 file-missing 2.4.6-p3 file-missing 2.4.6-p4 file-missing 2.4.6-p5 file-missing 2.4.6-p6 file-missing 2.4.6-p7 file-missing 2.4.6-p8 file-missing 2.4.6-p9 file-missing 2.4.6-p10 file-missing 2.4.6-p11 file-missing 2.4.6-p12 file-missing 2.4.6-p13 file-missing 2.4.6-p14 file-missing 2.4.6-p15 file-missing
2.4.6: no test data 2.4.6-p1: no test data 2.4.6-p2: no test data 2.4.6-p3: no test data 2.4.6-p4: no test data 2.4.6-p5: no test data 2.4.6-p6: no test data 2.4.6-p7: no test data 2.4.6-p8: no test data 2.4.6-p9: no test data 2.4.6-p10: no test data 2.4.6-p11: no test data 2.4.6-p12: no test data 2.4.6-p13: no test data 2.4.6-p14: no test data 2.4.6-p15: no test data
2.4.7
2.4.7 clean 2.4.7-p1 clean 2.4.7-p2 clean 2.4.7-p3 clean 2.4.7-p4 clean 2.4.7-p5 clean 2.4.7-p6 clean 2.4.7-p7 clean 2.4.7-p8 clean 2.4.7-p9 clean 2.4.7-p10 clean
2.4.7: no test data 2.4.7-p1: no test data 2.4.7-p2: no test data 2.4.7-p3: no test data 2.4.7-p4: no test data 2.4.7-p5: no test data 2.4.7-p6: no test data 2.4.7-p7: no test data 2.4.7-p8: no test data 2.4.7-p9: no test data 2.4.7-p10: no test data
2.4.8
2.4.8 clean 2.4.8-p1 clean 2.4.8-p2 clean 2.4.8-p3 clean 2.4.8-p4 clean 2.4.8-p5 clean
2.4.8: no test data 2.4.8-p1: no test data 2.4.8-p2: no test data 2.4.8-p3: no test data 2.4.8-p4: no test data 2.4.8-p5: no test data
2.4.9
2.4.9 conflictcontains the fix
2.4.9: no test data

Triage

Model @cf/cloudflare/clef. Probability this is a bug fix: 97.0%. Probability it is security relevant: 0.7%.

Show the model's answers and probabilities
QuestionAnswerProbabilitiesConfidence
Change kindbugfixbugfix 95.0%, refactor 1.8%, feature 0.9%, docs_only 0.8%, tests_only 0.7%, dependency 0.7%88.3%
Areafrontendfrontend 43.9%, customer 42.9%, checkout 8.1%29.6%
Reported version2.4.7-p52.4.7-p5 65.4%, 2.4.7 1.5%, 2.4.7-p4 1.2%42.3%
Scope0.12 of 20 90.5%, 1 7.0%, 2 2.5%73.6%
Risk0.11 of 20 90.5%, 1 7.6%, 2 1.9%73.8%
Worth backporting0.82 of 20 46.1%, 2 27.7%, 1 26.2%3.7%

Download

For cweagans/composer-patches, choose a version below and download the bundle. Copy its magento2-40100/ folder into patches/composer/, merge composer.patches.json into composer.json, then run composer install. Test files are always removed; paths are relative to each package root, using the default -p1 level.

Packages (1): magento/module-order-cancellation-ui
Bundle README (what the ZIP ships)
# magento2-40100

Community fix merged upstream into magento/magento2, adapted by magento.watch.
This is not a patch published by Adobe.

Pull request: https://github.com/magento/magento2/pull/40100
Issue: https://github.com/magento/magento2/issues/40098
Author: @mohaelmrabet
Source commit: 229a2b155995b998ab59e406d7292a9fe1a65610
Modifications: test files and documentation removed, paths rewritten relative to each Composer package.
Licence: OSL-3.0 / AFL-3.0, as the original Magento Open Source code.
Maintainer: Łukasz Bajsarowicz (@lbajsarowicz)

Licence: Magento Open Source code under OSL-3.0 and AFL-3.0. The bundle carries the original author, source commit and the list of modifications.

Sources

Łukasz Bajsarowicz
Built by

Łukasz Bajsarowicz, e-commerce architect

Magento and Adobe Commerce architecture, upgrades, performance and audits for merchants and agencies since 2015; magento.watch is the tooling I use on those projects.

Open source, maintained on weekends.