What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 8805 |  Welcome, Guest!   Register  Login
 Home > Interview Questions > .NET Framework Interview Questions > Difference between Globalization and Loc ...

Difference between Globalization and Localization ?

Interview question and answer by: Ddd | Posted on: 3/23/2011 | Category: .NET Framework Interview questions | Views: 3540 | | 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 
Found interesting? Add this to:


 Responses

Posted by: Senthilns2005 | Posted on: 03 Jun 2011 12:41:54 AM | Points: 10 | Alert Moderator 

good One It IS use ful For me

>> Write Response - Respond to this post and get points

Even more ... | Submit Interview Questions and win prizes!

More Interview Questions from Ddd

Even more ... | Submit Interview Questions and win prizes!


About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/22/2013 1:34:56 AM