Skip to content

Setting language/culture of dialogs #50

Discussion options

You must be logged in to vote

I have found a way,
we can use SetThreadUILanguage()
for anyone else looking for solution -

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

SetThreadUILanguage(1036); //french
SetThreadUILanguage((ushort)Thread.CurrentThread.CurrentUICulture.LCID); //to set to currentCulture language

you can find language id here

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ciarpame
Comment options

Answer selected by augustoproiete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #49 on August 02, 2021 06:21.