NanoByte.Common  2.10.5
NanoByte.Common.Values.Languages Class Reference

Provides CultureInfos. More...

Static Public Member Functions

static CultureInfo FromString (string langCode)
 Creates a CultureInfo from a ISO language code either in Windows (e.g. en-US) or Unix (e.g. en_US) format. More...
 
static void SetUI (CultureInfo culture)
 Changes the UI language used by this process. Should be called right after startup. More...
 

Static Public Attributes

static readonly IEnumerable< CultureInfo > AllKnown = GetAllKnown()
 All known languages in alphabetical order. More...
 

Detailed Description

Provides CultureInfos.

Member Function Documentation

◆ FromString()

static CultureInfo NanoByte.Common.Values.Languages.FromString ( string  langCode)
inlinestatic

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

◆ SetUI()

static void NanoByte.Common.Values.Languages.SetUI ( CultureInfo  culture)
inlinestatic

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

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

Member Data Documentation

◆ AllKnown

readonly IEnumerable<CultureInfo> NanoByte.Common.Values.Languages.AllKnown = GetAllKnown()
static

All known languages in alphabetical order.


The documentation for this class was generated from the following file: