Tag Archives: localization

List available culture codes in C#

This example shows how you can make a list of the culture codes that are available on the system. Several C# Helper examples deal with globalization including Localize a program in C#. To localize a program, you need to specify … Continue reading

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

Display the local time and GMT in C#

This example uses a Timer to execute the following code every half second. // Update the clocks. private void tmrClock_Tick(object sender, EventArgs e) { // Display the local time. DateTime now = DateTime.Now; lblLocalTime.Text = now.ToLongTimeString(); lblLocalDate.Text = now.ToShortDateString(); // … Continue reading

Posted in internationalization, system | Tagged , , , , , , , , , , , , , , | 1 Comment

Get date format information for the computer’s locale in C#

The System.Globalization namespace’s InstalledUICulture object provides lots of static methods giving information about numeric, date, and time formatting for the computer’s locale. This example adds a bunch of these values to a ListView control. The following code shows how the … Continue reading

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

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

Draw a timezone conversion chart in C#

The example Use Microsoft Word to make a timezone conversion chart in C# shows how to make a timezone conversion chart in Word. This example creates a print document holding a similar chart. When you select two timezones and click … Continue reading

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

Use Microsoft Word to make a timezone conversion chart in C#

This example uses Word to generate a timezone conversion chart that lets you easily convert hours from one timezone to another. Select a date and the two timezones. Then press Make Chart to make the conversion chart. (You need to … Continue reading

Posted in internationalization, Office, Word | Tagged , , , , , , , , , , , | 1 Comment