Class Languages
Provides CultureInfos.
Namespace: NanoByte.Common.Values
Assembly: NanoByte.Common.dll
Syntax
public static class Languages : Object
Fields
AllKnown
All known languages in alphabetical order.
Declaration
public static readonly IEnumerable<CultureInfo> AllKnown
Field Value
Type | Description |
---|---|
IEnumerable<CultureInfo> |
Methods
FromString(String)
Creates a CultureInfo from a ISO language code either in Windows (e.g. en-US) or Unix (e.g. en_US) format.
Declaration
public static CultureInfo FromString(string langCode)
Parameters
Type | Name | Description |
---|---|---|
String | langCode |
Returns
Type | Description |
---|---|
CultureInfo |
SetUI(CultureInfo)
Changes the UI language used by this process. Should be called right after startup.
Declaration
public static void SetUI(CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
CultureInfo | culture |
Remarks
This sets CurrentUICulture for the current and all future threads.