Skip to content

GH-18344 add Locale::addLikelySubtags/Locale::minimizeSubtags support. #18487

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 3, 2025

Conversation

devnexen
Copy link
Member

@devnexen devnexen commented May 3, 2025

from a minimized locale, addLikelySubtags augments it with likely subtags so no changes is the locale is already maximized e.g. en_Latn_US, minimizeSubtags in the other hand does the opposite operation.

@devnexen devnexen force-pushed the intl_subtags_handling branch 4 times, most recently from 7def1d9 to 0db5b4d Compare May 3, 2025 12:54
@devnexen devnexen marked this pull request as ready for review May 3, 2025 13:33
@devnexen devnexen requested a review from kocsismate as a code owner May 3, 2025 13:33
Copy link
Member

@nielsdos nielsdos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't forget UPGRADING&NEWS too

@@ -0,0 +1,35 @@
--TEST--
Locale::addLikekySubtags/Locale::minimizeSubtags usage
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Locale::addLikekySubtags/Locale::minimizeSubtags usage
Locale::addLikelySubtags/Locale::minimizeSubtags usage

…ort.

from a minimized locale, addLikelySubtags augments it with likely
subtags so no changes is the locale is already maximized e.g.
`en_Latn_US`, minimizeSubtags on the other hand does the opposite
operation.
@devnexen devnexen force-pushed the intl_subtags_handling branch from 0db5b4d to ebc709a Compare May 3, 2025 14:35
@devnexen devnexen merged commit bbac6f5 into php:master May 3, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[intl] Add support for adding and removing likely subtags for a locale, as defined in UTS#35
2 participants