[Issue] Fix #11175 - i18n:collect-phrases -m can't find many important Magento phrases - added parsing of the attr translations via $t('Text')
#31873
Labels
Component: Setup
Fixed in 2.4.x
The issue has been fixed in 2.4-develop branch
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Priority: P2
A defect with this priority could have functionality issues which are not to expectations.
Progress: done
Severity: S2
Major restrictions or short-term circumventions are required until a fix is available.
This issue is automatically created based on existing pull request: #31804: Fix #11175 - i18n:collect-phrases -m can't find many important Magento phrases - added parsing of the attr translations via
$t('Text')
Description (*)
According to the official Magento 2 documentations, there is a way to translate HTML attributes, but this is not covered as well. Here is a text from the documentation:
Documentation - Strings added in UI component templates
This was of translating attributes does not seem to be used in the Magento 2 itself (if my search is correct). Though,
it is officially documented, is used by some vendors and it can be found in some Q&A on the Internet
(like here - magento.stackexchange.com)
Related Pull Requests
48216f3
Fixed Issues (if relevant)
Manual testing scenarios (*)
.html
file, for exampleapp/code/Magento/Catalog/view/frontend/web/template/product/addtocart-button.html
php bin/magento i18n:collect-phrases app/code/Magento/Catalog/view/frontend/web/template/product/
Expected result: Command output contains phrases in the
$t('Text')
translations that cat be then used in the i18n files.i18n output example:
Actual result: The above phrases are not present in the output.
Questions or comments
Contribution checklist (*)
The text was updated successfully, but these errors were encountered: