Saturday, October 26, 2019

ASP.NET Globalization and Localization

Globalization: -
                 It is the process of developing a program core whose features and code design are not solely based on a single language or locale. It involves writing the executable code for an application in such a way that makes it culture-neutral and language-neutral. While incorporating globalization, you must ensure that the culture-specific details are not hard-coded into the executable code. The primary task in this phase is to identify the various locale-sensitive resources and to isolate these resources from the executable code.
                 It is the process of setting up the infrastructure in your code so that your software behaves properly in different cultures/locales.Setting up the infrastructure means: No hard-coding of labels anywhere in your software. Designing your software in such a way that you pick the appropriate labels when used in different locales/cultures. Coding in such a way that the Date format, Number format changes with culture. If you are dealing or displaying time, it should respect the Time zone.

Localization:-
               The process of adapting a program for a specific local market, which includes translating the user interface, resizing dialog boxes, customizing features (if necessary), and testing results to ensure that the program still works.
              Involves the customization of an application for a specific locale. One major task in this phase is the translation of resources identified during the globalization phase. During this phase, various resources, such as images and text, for the designated locale are created.
             Once the infrastructure is in place, we need to supply appropriate resources for our Globalized software to functional properly in different locales. This process of supplying resources is called localization. For eg: Adding of translations for every label used in the software to support different languages.