Category Archives: localization

Display sample formats for different locales in C#

This example loops through the system’s defined locales and displays sample numbers, currency values, dates, and times in each. When the program starts, the following code executes. private void Form1_Load(object sender, EventArgs e) { float float_value = 1234.56f; decimal dec_value … Continue reading

Posted in internationalization, localization | Tagged , , , , , , , , , , | Leave a comment

Change program locale at runtime in C#

This example lets you change program locale at runtime so you can test localized programs. The example Test localized programs in C# explains how you can make a program select a specific locale when it starts so you can test … Continue reading

Posted in globalization, internationalization, localization | Tagged , , , , , , , , , , , , , , , , , | Leave a comment

Test localized programs in C#

The example Localize a program in C# explains how you can localize a program so it displays different user interfaces depending on the system’s locale. After you localize it, the program automatically selects the correct locale at runtime. Because it … Continue reading

Posted in globalization, internationalization, localization | Tagged , , , , , , , , , , , , , | 1 Comment

Localize a program in C#

Globalization is the process of building an application that can be used by users from different cultures. Localization is the process of customizing a globalized application for a specific culture. To localize an application: Build an application as usual. Place … Continue reading

Posted in globalization, internationalization, localization | Tagged , , , , , , , , , , , , , | 2 Comments

Explore Unicode characters in C#

This example displays Unicode characters within a range of numeric values. Enter the minimum and maximum values to display and a font size. Then click List to display the characters in the range. When you move the mouse over the … Continue reading

Posted in internationalization, localization, strings | Tagged , , , , , , , , , , , | Leave a comment

A plea for help: Tell me what you want to see in my blog!

I get remarkably little feedback from my blog. I track post views and know that I have 857 Twitter followers, but people rarely let me know if they particularly like or dislike a post. That makes it hard for me … Continue reading

Posted in ADO.NET, algorithms, animation, API, challenges, combinatorics, controls, cryptography, curve fitting, database, extension methods, files, fonts, fractals, games, geometry, globalization, graphics, internationalization, LINQ, localization, mathematics, Office, phone, printing, reflection, registry, serialization, threading, transformations, user interface, Word, wpf, XAML, XML | 11 Comments

Display sample dates and currency values for the locales defined on the system in C#

This program uses the following simple CultureData class to store information about a locale. // A class to store cultre data. public class CultureData { // The CultureInfo. public CultureInfo Info; // Initializing constructor. public CultureData(CultureInfo info) { Info = … Continue reading

Posted in internationalization, localization | Leave a comment

Make locale-aware methods use a new culture at runtime in C#

The example Change a localized program’s locale at runtime to test it in multiple languages and locales in C# explains how to change a program’s locale and reload its controls for the new locale. However, that doesn’t change the thread’s … Continue reading

Posted in internationalization, localization | Leave a comment