Please how can i retrieve the Dictionary Value of an item in French when an still on the English site . i have used this but its not working irrespective of the int value i pass into Value .
public static string GetDictionaryItemByCulture(string key, CultureInfo culture)
{
Language byCultureCode = new Language(culture.Name);
string nameing = new Dictionary.DictionaryItem(key).Value(1);
return nameing;
}
my Dictionary looks like this ..
And i need to get the french Value when am on English Site. Can anyone help me out .
Retrieve DictionaryItem
Hi ,
Please how can i retrieve the Dictionary Value of an item in French when an still on the English site . i have used this but its not working irrespective of the int value i pass into Value .
my Dictionary looks like this ..
And i need to get the french Value when am on English Site. Can anyone help me out .
Hi Akeem,
You need to set current culture to French before getting value from Dictionary.
Cheers
Thank you alex .
is working on a reply...