Click here to Skip to main content
11,714,776 members (82,212 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: .NET WPF
I am trying to change the language of a WPF project. i am using method mentioned in[^]

But the default culture info is not getting loaded at the starting..
How to show the Default language at the starting?
Posted 25-Jan-13 2:21am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You need to change language, not default language. The default language means system default, but you are talking about start of your application.

Look at the article you referenced and pay attention for these lines:
Thread.CurrentThread.CurrentCulture = ci;
Thread.CurrentThread.CurrentUICulture = ci;

That should reload resource assemblies with the satellites closest to the required culture.

Maybe you want to switch input language (related to keyboard layout)? This is something different. Please see:[^].

(If you want to change the system default input language look at the SystemParametersInfo function with the SPI_SETDEFAULTINPUTLANG flag:[^].

This is not a part of .NET CFL. You need to use P/Invoke to do it:[^],[^].

I doubt you really need it.)


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 570
1 Richard MacCutchan 275
2 Maciej Los 274
3 OriginalGriff 140
4 CHill60 135
0 Sergey Alexandrovich Kryukov 545
1 CHill60 375
2 Maciej Los 324
3 Richard MacCutchan 310
4 OriginalGriff 260

Advertise | Privacy | Mobile
Web02 | 2.8.150819.1 | Last Updated 25 Jan 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100