Globalization and Localization with Razor web pages(www.mikesdotnetting.com)

submitted by vijaystvijayst(1311) 7 months, 13 days ago

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 |category: |Views: 77

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by bradygasterbradygaster(4897) 7 months, 12 days ago +1

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.

Reply

posted by RobertTheGreyRobertTheGrey(447) replied to bradygasterbradygaster(4897), 7 months, 12 days ago 0

Couldn't agree more!

Reply

posted by dpetersondpeterson(4397) 7 months, 13 days ago 0

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).

Reply

information Login or create an account to comment on this story