Skip to content

Filipino (philippines) language translation not working! #33996

Closed
@pawan

Description

@pawan

Preconditions (*)

  1. Magento 2.3, 2.4, 2.4-develop
  2. 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 (*)

  1. 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

Area: ContentComponent: LocaleFixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: ready for confirmationPriority: P1Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Priority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: doneReproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions