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
Allow partial culture matching in Update-Help #18037
base: master
Are you sure you want to change the base?
Conversation
|
There is a single test failing, looks like some empty case for |
|
This PR has Quantification details
Why proper sizing of changes matters
Optimal pull request sizes drive a better predictable PR flow as they strike a
What can I do to optimize my changes
How to interpret the change counts in git diff output
Was this comment helpful? |
|
Looks like the failing test case was because of a typo in |
Unrelated and style changes should be moved to separate PRs. |
|
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
PR Summary
Allows the help locale to match, if it is in the list of parents (fallback chain) of the provided (or implicit) one.
Fixes #18021
PR Context
Currently, if the help has locale
'en-US'as most do, only the following will work and everything else will throw an error:The PR changes it so that the following will also work:
Explicit
Update-Help -UICulture 'en-GB'will still not work, because explicit culture does not use fallback chain.This solves the bug of fallback chain not actually working, as fallback culture
'en'did not match anything. It was supposed to work by use of globbing, but lack of+ "*"meant that the glob still used exact matching. It also allows the user to use explicit-UICulture 'en'to mean "any English will do, regardless of region".PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.(which runs in a different PS Host).