C# Class NanoByte.Common.Values.Languages

Provides CultureInfos.
Datei anzeigen Open project: nano-byte/common

Public Methods

Method Description
FromString ( string langCode ) : CultureInfo

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

SetUI ( [ culture ) : void

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.

Private Methods

Method Description
GetAllKnown ( ) : IEnumerable

Method Details

FromString() public static method

Creates a CultureInfo from a ISO language code either in Windows (e.g. en-US) or Unix (e.g. en_US) format.
public static FromString ( string langCode ) : CultureInfo
langCode string
return System.Globalization.CultureInfo

SetUI() public static method

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.
public static SetUI ( [ culture ) : void
culture [
return void