Introducing .NET Localization
The .NET Framework provides the infrastructure for application localization via the System.Globalization
namespace. The most important class in this namespace is the CultureInfo
class that allows getting or setting information on the current application culture or on new custom settings. Generally this class works with the System.Threading.Thread.CurrentThread
class that provides access to the thread representing your executable and that exposes the CurrentCulture
and CurrentUICulture
properties that you can assign with a CultureInfo
object. The following code demonstrates how to get information on the current thread culture and how to set a new CultureInfo
:
The CultureInfo
class provides lots of properties that ...
Get Visual Basic® 2010 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.