396 Views
Globalization is presenting the same content in multiple languages - English, French, German etc. Localization is doing formatting of numbers, currency, time etc in the local regional format. This post describes how to do localization using resource files as well as using database tables. The second approach is useful if you are working with WebMatrix which does not support resource files.
3 comments
dpeterson
10/11/2011 10:33:19 AM
I definitely lean towards the database version myself, even if content changes infrequently. I'd be interested to see the localization strategies of some larger websites that run on ASP.Net (like Microsoft).
bradygaster
10/12/2011 7:01:37 AM
I'd really like to see an example like that done by Rick Strahl a number of years ago that makes use of the globalization functionality via a custom globalization provider backed by a database. This post does a decent job of introducing the topic, focusing on resource files, and then seems to switch gears and show a simple database query within HTML. There's a great opportunity for a second, much deeper post, that connects a database to a REAL resource management implementation. I've not yet seen something like that for Razor, and I know the community would appreciate it.
RobertTheGrey
10/12/2011 7:25:19 AM
Couldn't agree more!