Globalization in C #

Can someone explain to me what the use of globalization is in C #?

Is it used for conversion purposes? I want to say that I want to translate any English word into the selected language.

How can this globalization or cultureinfo help me?

+4
source share
5 answers

Globalization is a text formatting tool for specific cultures. For instance. the string representation of the number 1000 can be 1000.00 for the UK or 1,000.00 for France. This is a pretty deep subject, but this is the main goal. It is NOT a translation service, but it allows you to determine the culture under which your application runs, and therefore allows you to choose the language you want to display. You will have to provide the translation of the text yourself, however, usually using resource files.

+8
source

Globalization is a way to allow a user to customize an application that he or she can use to meet the standards where they can be. Cusomtization allows you to:

  • Money formatting
  • Time
  • date of
  • Text orientation

Be culturally appropriate. The area that is currently installed is processed by the OS and transferred to your application. Globalization / internationalization (I18n) also typically encourages the developer to separate the displayed text of the program from its implementation.

+4
source

From MSDN :

System.Globalization - Contains classes that define culture-related information, including language, country / region, calendars to use, format templates for dates, currencies and numbers, and sort order for strings.

This build helps build your culture-oriented application and is widely used inside the .NET platform. For example, when converting from Date to String, globalization is used to determine the usage format, for example, "11/28/2009" or "28-11-2009." Typically, this determination is performed automatically within the framework without directly using the assembly. However, if you need to, you can directly use Globalization to search for cultural information for your own use.

+2
source

To clear even more confusion

Localization (or localization for non-American people), L10n for short: the process of adapting a program to a specific location. It consists of translation of resources, adaptation of the user interface (if necessary), etc.

Internationalization, i18n for short: the process of adapting a program to support localization, regional characters, formats, etc. etc., but, most importantly, the process that allows the program to work correctly regardless of the current settings of the language standard and OS language version.

Globalization, g11n for short: consist of both i18n and L10n.

+2
source

To fix some confusion:

Globalization. Allows an application to use the language resources downloaded from an external resource library at runtime. This means that all of your lines are in resource files, and not hard-coded into source code.

Localization: adapting your program to a specific locale. This could be line feeds and dialog boxes from right to left for languages ​​like Arabic.

Here is a link to create a satellite dll. He says C ++, but the same principle applies to C #.

+1
source

All Articles