Implementing Multilingual Applications in Microsoft .NET
page 4 of 12
by Joydip Kanjilal
Feedback
Average Rating: 
Views (Total / Last 10 Days): 53129/ 134

Working with Culture Information

Microsoft .NET provides support for working with culture specific information using the CultureInfo class in the System.Globalization namespace.  Culture information can be set both at the page level as well as at the application level.

To set the Culture information at the page levels use the following in the Page directive of the ASP.NET page.

Listing 1

<%@ Page language="C#" Culture="fr-FR"%>

This statement in listing 1 would ensure that the culture information is applicable only for this particular page in the application.

To set the Culture information at the application level, use the following in the Globalization section of the web.config file.

Listing 2

<configuration>
  <system.web>
    <globalization
       culture="en-GB"
    />
  </system.web>
</configuration>

This specification as shown in listing 2 in the web.config file would ensure that the culture information is applicable throughout the application.


View Entire Article

User Comments

Title: What about localized Databases?   
Name: Rojalin
Date: 2006-09-28 6:54:50 AM
Comment:
many many tx for this article
Title: Implementing Multilingual Applications in Microsoft .NET   
Name: rambabu
Date: 2006-09-12 7:22:14 AM
Comment:
The article is very nice and the author explained in simple terms to understand the various aspects of Globailization and Localization.I liked this article very much.
Title: What about localized Databases?   
Name: Max
Date: 2006-09-12 4:58:25 AM
Comment:
Hi,
thank you very much for your article!
I have always been looking around for a standardized way of localizing db-entries. For instance if I run a web-shop which must be available to german and english customers my descriptions of my articles must be in german and english.
Of course this has to be stored in a DB and not in embedded resources.






Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-05-28 7:25:20 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search