Skip to content
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

Display dialogs using OS language #51

Open
augustoproiete opened this issue Aug 7, 2021 · 0 comments
Open

Display dialogs using OS language #51

augustoproiete opened this issue Aug 7, 2021 · 0 comments
Labels
enhancement New feature or request hacktoberfest https://hacktoberfest.digitalocean.com help wanted Extra attention is needed up-for-grabs
Milestone

Comments

@augustoproiete
Copy link
Member

Allow users to easily open dialogs in different languages. The behavior should be the same as using the standard dialogs in Windows Forms.

A possible workaround for now is to call SetThreadUILanguage with the desired Windows Language Code Identifier (LCID):

For example, for French:

[DllImport("Kernel32.dll", CharSet = CharSet.Auto)]
static extern System.UInt16 SetThreadUILanguage(System.UInt16 LangId);

SetThreadUILanguage(1036); // French

image


Originally reported by @DineshSolanki via #50

@augustoproiete augustoproiete added enhancement New feature or request help wanted Extra attention is needed up-for-grabs labels Aug 7, 2021
@augustoproiete augustoproiete added this to the Future milestone Sep 5, 2021
@augustoproiete augustoproiete added the hacktoberfest https://hacktoberfest.digitalocean.com label Oct 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest https://hacktoberfest.digitalocean.com help wanted Extra attention is needed up-for-grabs
Development

No branches or pull requests

1 participant