Languge

  • Thread starter Thread starter Muhammad Bilal
  • Start date Start date
M

Muhammad Bilal

Hi.
how system defualt language can be changed to another language.

Regards
Muhammad Bilal
 
Peter,

A language has not much to do with a culture.

Most part of languages are done by the OS and Net versions. By telling that
the culture is Belgian and the language is Dutch, the computer with a French
OS does not change by that its user interface.

Your own part of text in your program should be done using the RESX files.
You can try to use the properties of the form of that, however don't think
it is an easy way, at least you should then very well familiar with all the
natural languages that you use.

Cor
 
Cor ,

Thanks for your reply. I had originally thought you were in holiday,and
would have no time to write in the group. Now I find I am wrong. Thanks for
your diligence and happy Chrismas to you all.

I have a solution which contains a windows application project and a class
library project. I add resources(such as English and Chinese text) to both
projects. I will put the language change mechanism ( by executing the
method: My.Application.ChangeUICulture(somelanguage)) in the windows
application project. I wonder if the class library resources can be
changed properly when I run the solution and change language in the windows
application , I didn' t do anything associated with language change.

Peter
 
Sorry, I didn' t do anything associated with language change in the class
library project.

Peter
 
Peter,

Here a very simple sample
Threading.Thread.CurrentThread.CurrentCulture = New
Globalization.CultureInfo("en-US")
MessageBox.Show(Now.ToLongDateString)
Threading.Thread.CurrentThread.CurrentCulture = New
Globalization.CultureInfo("en-GB")
MessageBox.Show(Now.ToLongDateString)
Threading.Thread.CurrentThread.CurrentCulture =
Globalization.CultureInfo.InstalledUICulture
MessageBox.Show(Now.ToLongDateString)

to see a more complex one have a look at this one

http://www.vb-tips.com/Cultures.aspx

Cor
 
Back
Top