- Moderator
- #1,041
Hi
It seems to solve the issue :
The error seems to comes when 'cultureList.EnglishName' is already there, so i have add a check, the plugins open now
But like i didn't use it, i hope nothing else is broken.
It seems to solve the issue :
public static string GetCultureName(string language)
{
if (_cultures == null)
{
_cultures = new Dictionary<string, string>();
CultureInfo[] cultureList = CultureInfo.GetCultures(CultureTypes.AllCultures);
for (int i = 0; i < cultureList.Length; i++)
{
if (!_cultures.ContainsKey(cultureList.EnglishName))
{
_cultures.Add(cultureList.EnglishName, cultureList.Name);
}
}
}
if (_cultures.ContainsKey(language))
return _cultures[language];
return null;
}
The error seems to comes when 'cultureList.EnglishName' is already there, so i have add a check, the plugins open now
But like i didn't use it, i hope nothing else is broken.