Setting language/culture of dialogs #50
Answered
by
DineshSolanki
DineshSolanki
asked this question in
Q&A
-
I have tried setting CurrentCulture and CurrentUICulture but none seems to affect the language of dialogs button, could you tell me how to do that. |
Beta Was this translation helpful? Give feedback.
Answered by
DineshSolanki
Aug 2, 2021
Replies: 1 comment 1 reply
-
I have found a way, [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 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
augustoproiete
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have found a way,
we can use SetThreadUILanguage()
for anyone else looking for solution -
you can find language id here