Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is system.globalization And what's the difference between it and localization

and to spice things a bit , what is the best approach for globalization in Asp.net Mvc App

like image 567
Moran Helman Avatar asked Nov 10 '08 15:11

Moran Helman


2 Answers

Globalization is about producing a map from strings or identifiers to translations in other languages, while Localization is about using that map to find the correct translation. Globalization happens during development, localization happens at runtime.

I'm not very experienced doing this with ASP.NET, but...

As for how, the most common approach I see is to have a dictionary per language per assembly (or per UI component), where the values are localized strings. The keys are typically readonly members on a static class or enum. There is often a convenience class whose members are the map from identifiers to localized messages.

The dictionaries are typically stored in separate files and in a format targeted to human translators.

More here: http://msdn.microsoft.com/en-us/library/aa478974.aspx

like image 67
Joshua Tacoma Avatar answered Oct 06 '22 19:10

Joshua Tacoma


From the W3C I18n FAQ:

Localization refers to the adaptation of a product, application or document content to meet the language, cultural and other requirements of a specific target market (a "locale").

Internationalization (or globalization) is the design and development of a product, application or document content that enables easy localization for target audiences that vary in culture, region, or language.

I've never globalized an ASP.NET MVC application, so sorry if I can't help you there.

like image 20
Bill the Lizard Avatar answered Oct 06 '22 19:10

Bill the Lizard