How about the same way the CultureInfo class does it? e.g.:
public string GetLocalizedName(CultureInfo targetCulture, CultureInfo
languageCulture)
{
ResourceManager manager = new ResourceManager("mscorlib",
typeof(string).Assembly);
return manager.GetString("Globalization.ci_" + targetCulture.Name,
languageCulture);
}
One important detail is that the mscorlib resources file for the specified
language must be installed on the machine. If not, the usual
ResourceManager language fallback rules will be applied. In other words,
it's probably pretty useless even if all available language packs have been
installed (which is extremely unlikely).
"Rich Urwin" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
>> If you want to display the name of a culture in some
>> other language (e.g., Framework is English, current UI
>> is Spanish, and you want the name of German culture in
>> Spanish), I'm not sure how to get that.
>
> Thanks for replying - that's exactly what I want! Anybody else have any
> suggestions?
>
> cheers,
> rich
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***