C# Class NanoByte.Common.Values.Languages

Provides CultureInfos.
Afficher le fichier Open project: nano-byte/common

Méthodes publiques

Méthode 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

Méthode Description
GetAllKnown ( ) : IEnumerable

Method Details

FromString() public static méthode

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
Résultat System.Globalization.CultureInfo

SetUI() public static méthode

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 [
Résultat void