You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I generate my markdown doc files using New-MarkdownHelp the output is english, but one line says -------------------------- BEISPIEL 1 -------------------------- as shown in the screenshot below:
My Windows culture is German (de-DE).
When I enter the following line into a PowerShell window, the example header is english (-------------------------- EXAMPLE 1 --------------------------):
[Threading.Thread]::CurrentThread.CurrentUICulture ='en-US'; Get-Help"Get-AppsInstalled"-Detail
ed
I think the generated markdown file should be either completely in English or CurrentCulture of a user's system.
Though, there is the possibility that I've misunderstood the internationalization of Windows / platyPS. If so, feel free to tell me about this design decision.
Would it be sufficient to add the Threading-line above @ this line?
Hi Jonas Thelemann (@dargmuesli) !
The -------------------------- EXAMPLE 1 -------------------------- comes from the help content itself and not generated, so it uses whatever output the help system provides.
To see what I mean, open any maml xml that ships with powershell, and search for -----------. There is a separate version for every language.
So I'd say that this is by design. But in general, unfortunately, the whole localization story is not done for platyPS at all.
Looks like PowerShell Core changed the output. I get the correct output with PS Core on Windows with platyPS 0.9.0 too, but not with PowerShell 5 (and Windows and platyPS 0.9.0).
Activity
vors commentedon Aug 23, 2017
Hi Jonas Thelemann (@dargmuesli) !
The
-------------------------- EXAMPLE 1 --------------------------comes from the help content itself and not generated, so it uses whatever output the help system provides.To see what I mean, open any maml xml that ships with powershell, and search for
-----------. There is a separate version for every language.So I'd say that this is by design. But in general, unfortunately, the whole localization story is not done for platyPS at all.
dargmuesli commentedon Mar 12, 2018
The correct headers are now being generated using PowerShell Core (Linux) with platyPS 0.9.0. I'm not sure what made the change though.
vors commentedon Mar 12, 2018
Hmmmmm 🤔
dargmuesli commentedon Mar 12, 2018
Looks like PowerShell Core changed the output. I get the correct output with PS Core on Windows with platyPS 0.9.0 too, but not with PowerShell 5 (and Windows and platyPS 0.9.0).