Difference between Globalization and Localization ?

 Posted by Ddd on 3/23/2011 | Category: .NET Framework Interview questions | Views: 12374 | Points: 40
Answer:

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.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Posted by: Senthilns2005 on: 6/3/2011 | Points: 10
good One It IS use ful For me

Login to post response