C# Class Yea.Localization.LocaleManager

ファイルを表示 Open project: OxPatient/Rule-Engine Class Usage Examples

Public Methods

Method Description
GetLocaleVersion ( string localeKey, string collectionKey, string key ) : uint
GetString ( string key, bool useFallback = false, string fallback = null ) : StringTranslation
GetString ( string collectionKey, string key, bool useFallback = false, string fallback = null ) : StringTranslation
GetString ( string localeKey, string collectionKey, string key, string fallback = null ) : StringTranslation
GetStringStatus ( System.Locale locale, string collectionKey, string key ) : StringStatus
GetStrings ( string keys ) : Yea.Localization.StringTranslation[]
GetStrings ( string collectionKey, string keys ) : Yea.Localization.StringTranslation[]
LoadLocales ( ) : void
LocaleManager ( string defaultCollectionKey = null, string defaultLocale = @"en-US", string localizationFolder = @"lang", string propertiesXml = @"properties.xml" ) : System
SetLocale ( string localeKey ) : bool

Private Methods

Method Description
CheckDefaultCollectionKey ( ) : void
LoadLocale ( string localeKey ) : bool

Method Details

GetLocaleVersion() public method

public GetLocaleVersion ( string localeKey, string collectionKey, string key ) : uint
localeKey string
collectionKey string
key string
return uint

GetString() public method

public GetString ( string key, bool useFallback = false, string fallback = null ) : StringTranslation
key string
useFallback bool
fallback string
return StringTranslation

GetString() public method

public GetString ( string collectionKey, string key, bool useFallback = false, string fallback = null ) : StringTranslation
collectionKey string
key string
useFallback bool
fallback string
return StringTranslation

GetString() public method

public GetString ( string localeKey, string collectionKey, string key, string fallback = null ) : StringTranslation
localeKey string
collectionKey string
key string
fallback string
return StringTranslation

GetStringStatus() public method

public GetStringStatus ( System.Locale locale, string collectionKey, string key ) : StringStatus
locale System.Locale
collectionKey string
key string
return StringStatus

GetStrings() public method

public GetStrings ( string keys ) : Yea.Localization.StringTranslation[]
keys string
return Yea.Localization.StringTranslation[]

GetStrings() public method

public GetStrings ( string collectionKey, string keys ) : Yea.Localization.StringTranslation[]
collectionKey string
keys string
return Yea.Localization.StringTranslation[]

LoadLocales() public method

public LoadLocales ( ) : void
return void

LocaleManager() public method

public LocaleManager ( string defaultCollectionKey = null, string defaultLocale = @"en-US", string localizationFolder = @"lang", string propertiesXml = @"properties.xml" ) : System
defaultCollectionKey string
defaultLocale string
localizationFolder string
propertiesXml string
return System

SetLocale() public method

public SetLocale ( string localeKey ) : bool
localeKey string
return bool