How To Change Locale In Windows 7
-
Question
-
Hi, I've been trying to alter the default locale in the WP7 emulator to examination the localization framework we've been edifice. The matter is that the emulator hangs when I try to utilize changes, and waits forever to supposelly "restart".
Is there any alternative manner to change the default locale (ie. windows registry, or something)?
thx!
All replies
-
I'm sorry Nolver but changing things such as the registry is impossible in the electric current solution. Since your application is Sandboxed in it's own little place you really only have control over what goes on inside your application.
This is to prevent applications making unauthorised changes to the operating system and information technology gives the OS a greater layer of security. As such but your application tin admission the storage mode (Isolated Storage) it uses equally well.
GD
-
I wasn't talking about irresolute the registry in (or from) the emulator. What I mean is there maybe some value on the Windows Registry I could tweak manually (not from code) to make the emulator start in a different language.
I tried to effigy it out myself by running a Registry Monitor while the emulator is starting, merely culdn't find anything helpful. Probabbly the emulator settings are existence stored in the "Nand Wink" memory file, which is something I can't think how to alter from the outside.
-
Re: " Localization suport for emulator is in the works for next milestones, and not for beta."
Hi Goldark,
suggesting a work-effectually by
setting the Arrangement.Threading.Thread.CurrentThread.CurrentCulture to a new CultureInfo object specifically using whatever locale code you're testing App.xaml.cs's constructor –
in order to override the organisation'south civilisation for the awarding...Though it wouldn't work...
"reboot within emulator is something which is not supported in Beta release and getting supported in next milestone."
(by same person at Microsoft ;)
-
Since this remains unanswred and appears in top results in google...
This if for the application y'all apply it to only. Will Not change locals for the emulator.
Bold you have set all the other files/settings related to globalization and Merely demand to see if they work with your app:
Go to App.xaml.cs
observe private void Application_Launching(object sender, LaunchingEventArgs east) { } method.
add:
Thread.CurrentThread.CurrentCulture = new CultureInfo("cultureName");
Thread.CurrentThread.CurrentUICulture = new CultureInfo(" cultureName ");where "cultureName" is a valid civilisation proper noun such as: "en", "en-US", "es-CL".... and according to your resources.
Note: Just tested in the emulator with VS2010 express for windows phone RTM
Source: https://social.msdn.microsoft.com/Forums/en-US/114a0a89-00f1-49e1-827c-2606b848bac6/how-to-change-the-locale-in-wp7-emulator?forum=silverlightwinphone
Posted by: bensongazinsibelf1940.blogspot.com

0 Response to "How To Change Locale In Windows 7"
Post a Comment