Table of Contents

Class Languages

Namespace
NanoByte.Common.Values
Assembly
NanoByte.Common.dll

Provides System.Globalization.CultureInfos.

public static class Languages
Inheritance
object
Languages

Fields

AllKnown

All known languages in alphabetical order.

public static readonly IEnumerable<CultureInfo> AllKnown

Field Value

IEnumerable<CultureInfo>

Methods

FromString(string)

Creates a System.Globalization.CultureInfo from a ISO language code either in Windows (e.g. en-US) or Unix (e.g. en_US) format.

public static CultureInfo FromString(string langCode)

Parameters

langCode string

Returns

CultureInfo

SetUI(CultureInfo)

Changes the UI language used by this process. Should be called right after startup.

public static void SetUI(CultureInfo culture)

Parameters

culture CultureInfo

Remarks

This sets System.Globalization.CultureInfo.CurrentUICulture for the current and all future threads.