I need to change the current culture of the application to th-TH I have tried to do this to create an object of the following type and I intend to assign it to the current thread's CurrentCulture Property
System.Threading.Thread.CurrentThread.CurrentCulture =
new System.Globalization.CultureInfo("en-US");
But the .NET Compact edition that I am using does not have the CurrentCulture property available in the System.Threading.Thread.CurrentThread
property.
Is there a way in which we can do this?
Edit : I can change the Regional setting of the Mobile device and then when I run the application I am able to get the Correct text from the correct resource files.
But I am not able to get the correct resource when Install the application using a setup project
This is what I have done.
- I Created the Setup project and I included the Localized resources, Primary output and also the Content file to the Application folder in the file system directory of the setup project.
- I then built it under Debug Mode and the Required Cab files were generated.
- I transfered the file to my device and then ran the cab file and it says installation successfull.
- When I run the application it displays the strings only in English language irrespective of the regional settings on the device (But the correct strings from the language resource are displayed in the app when I run the same application in the Debug mode by directly selecting the device in visual studio and deploying the application on it)
I have also verified that the reqired folders such as fr-CA,th-TH etc are being created in the same directory where the .exe of my application is present