Archive for May 6, 2007

Localization (a brief introduction)

Presently, with the increase in the number of non-english users, internationalizing web sites has become quite important. In this article, as the title suggests… I am going to very brief explaination about how a web site can be localized.

To begin with, for localizing a web application a programmer needs to –

1. identify the localizable entities of the application. These can be any one of the following- Text Resource; Graphics; Database content; Dates; and maybe currencies, etc.,

2. is to identify which method of retrieval of culture information. And for this one can make use of the web.config or the page directive or allow the user to select the culture through the application itself


3. is to identify how the resource information has to be stored. This can be done by using 1. the Database or 2. the Resource files (.resx files); 3. the Text files (which can be easily converted into a Resource file) or 4. an xml file or 5. an excel sheet.

all this will obviously be based on whatever is suitable for your app.

I created this very simple web application in which i allow the user to either select English(US) or Deutsche (Germany) language and am making use of .resx files to store the resources.

To be more specific, I am going to make use of two pages, SelectLang page and LangIndicator page. The SelectLang page will contain a dropdownlist from which the user can select the required language and the LangIndicator page is going to make use of this selected information to set the current thread culture. And thats it….


May 6, 2007 at 2:42 pm 1 comment

May 2007
« Apr   Jun »