Click here to Skip to main content
15,884,629 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
See more:
hello guys
i want to change my whole project in urdu language queries data save in server etc also show urdu language on window form please any one help how do this
thanks :-)
Posted

To change the culture in your program, then you can do it like this:
C#
CultureInfo ci = new CultureInfo("ur");
Thread.CurrentThread.CurrentCulture = ci;
Thread.CurrentThread.CurrentUICulture = ci;


If you are only using .NET 4 and not .NET 4.5
You have to remember to change the Culture in every Thread or Task you are making.

In .NET 4.5, there is a new global way to change all Thread to a new culture.
C#
CultureInfo ci = new CultureInfo("ur");
CultureInfo.DefaultThreadCurrentCulture = ci;
CultureInfo.DefaultThreadCurrentUICulture = ci;


CultureInfo.DefaultThreadCurrentCulture[^]
http://www.csharp-examples.net/culture-names/[^]
 
Share this answer
 
v2
Comments
Member 10393648 30-Aug-14 11:39am    
thnks
Member 10393648 30-Aug-14 11:42am    
in which file i have to put this code?
Kim Togo 30-Aug-14 13:49pm    
It depends, but one place is in program.cs file under Main(), it has to be before you create any WinForm
There is no way to automatically translate your software UI elements, or the database stored strings to any language, let alone urdu. There are machine translations out there - Google translate for example - but there is no way to automatically convert your app or the data it reads.

Any such translation will almost certainly require a good deal of human input.
 
Share this answer
 
Comments
Member 10393648 30-Aug-14 11:08am    
sorry i want to say that if i want to develeop an app in urdu how could i do this????????

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900