Skip to content

Example Header Localization #300

Closed
Closed

Description

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:

Screenshot

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?

Activity

  1. vors commented on Aug 23, 2017

    @vors
    Collaborator

    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.

  2. dargmuesli commented on Mar 12, 2018

    @dargmuesli
    Author

    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.

  3. vors commented on Mar 12, 2018

    @vors
    Collaborator

    Hmmmmm 🤔

  4. dargmuesli commented on Mar 12, 2018

    @dargmuesli
    Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions