Fix incorrect locale casing for pt-BR #1501#1520
Fix incorrect locale casing for pt-BR #1501#1520codeWithPunith wants to merge 1 commit intoplone:masterfrom
Conversation
|
@codeWithPunith you need to sign the Plone Contributor Agreement to merge this pull request. Learn about the Plone Contributor Agreement: https://plone.org/foundation/contributors-agreement If you have already signed the agreement, please allow a week for your agreement to be processed. If after a week you have not received an invitation, then please contact agreements@plone.org. |
petschki
left a comment
There was a problem hiding this comment.
Thanks for contributing. Please read the instructions for signing the contributor agreement. Also please note, that we're using an old and patched select2 package from here https://github.com/ivaynberg/select2/tree/develop/src/js/select2/i18n ... I'd suggest to check the combined codes and apply the uppercase factory only for the needed ones.
|
deprecated by #1531 |
Problem:
When the browser language is "pt-br", the app generates a lowercase locale string,
but translation files use uppercase region codes ("pt-BR"). On case-sensitive
systems this causes the file not found error.
Solution:
Normalize locale format so region codes are always uppercase.
Testing: