Showing posts with label Difference between Globalization and Localization. Show all posts
Showing posts with label Difference between Globalization and Localization. Show all posts

Tuesday 17 January 2012

Difference between Globalization and Localization

Difference between Globalization and Localization ?

Globalization refers to formatting data in formats relevant for the current culture setting.

example:
a)consider this tag in Web.Config file.
<globalization culture="fr-FR"/>
It would cause the dates to be displayed in French for the web page of
the folder where this Web.Config file is located.

b) CultureInfo d=new CultureInfo("de-DE");
Response.Write(DateTime.Now.ToString("D",d);
It would display date in long format using German culture


Localization refers to retrieving and displaying appropriately
localized data based on the culture.
It can be done by using the Resource files.

example:
we have 2 resource files:
a)default.aspx.fr-FR.resx
b)default.aspx.en-US.resx

Using appropriate coding in the .aspx.cs files of a web page, the strings written in these resource files can be used to change the text of the strings dynamically.