I know this is a little stupid that I am asking for a .dll or a namespace which contains Localization while others are asking how to do the localization.
But I have spent half an hour on seeking the reference file or namespace and have got no luck.
I tried to find System.Globalization or similar references in VS 2012 and have found nothing.
Here is the question which I followed to do my coding asp.net mvc multilanguage urls/routing
I am following the code written by Feras Kayyali
private string GetCurrentCulture()
{
string lang;
// set the culture from the route data (url)
if (RouteData.Values["lang"] != null &&
!string.IsNullOrWhiteSpace(RouteData.Values["lang"].ToString()))
{
lang = RouteData.Values["lang"].ToString();
if (Localization.Locales.TryGetValue(lang, out lang))
{
return lang;
}
}
As you can see in the code, he used the Localization.Locales class which I cannot find from anywhere.
Please help.
Thank you !