Description
Preconditions (*)
- Magento 2.3, 2.4, 2.4-develop
- Multi Store
Steps to reproduce (*)
-
Create a new store view for philippines i.e. philippines
-
Go to system -> configuration -> change scope from Default to philippines store view
-
Change locale to Filipino (Philippines)
-
Install language pack for Filipino i.e. composer require mageplaza/magento-2-filipino-language-pack:dev-master Or can create a custom language pack
-
Go to front-end and change Store view form Default to Philippines
Expected result (*)
- translation should work on frontend!
Actual result (*)
exception(s):
Exception #0 (Magento\Framework\Exception\LocalizedException): The XML in file "/vendor/mageplaza/magento-2-filipino-language-pack/language.xml" is invalid:
Element 'code': [facet 'pattern'] The value 'fil_PH' is not accepted by the pattern '[a-z]{2}([a-zA-Z]{4})?[A-Z]{2}'.
Line: 3
Verify the XML and try again.
Exception #1 (Magento\Framework\Config\Dom\ValidationException): Element 'code': [facet 'pattern'] The value 'fil_PH' is not accepted by the pattern '[a-z]{2}([a-zA-Z]{4})?[A-Z]{2}'.
Line: 3
Exception #0 (Magento\Framework\Exception\LocalizedException): The XML in file "/var/www/html/m2-git/vendor/mageplaza/magento-2-filipino-language-pack/language.xml" is invalid:
Element 'code': [facet 'pattern'] The value 'fil_PH' is not accepted by the pattern '[a-z]{2}([a-zA-Z]{4})?[A-Z]{2}'.
Line: 3
Additional Information (*)
All other locale have code either az_AZ or az_aAzZ_ZZ, only Filipino language have code fil_PH
which is different form all other codes.
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.
- [x ] 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.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status