Méthode | Description | |
---|---|---|
GetBestAvailableLanguageFrom ( string languages ) : string |
Returns the best matching language for this application's resources, based the provided languages
|
|
GetText ( string key, string languages ) : string |
Returns localized text for a given default language key, or the default itself, based on the provided languages and application resources
|
Méthode | Description | |
---|---|---|
CleanCommentLine ( string line ) : string | ||
CreateEmptyMessages ( string culture ) : void | ||
GetCultureInfoFromLanguage ( string language ) : |
||
GetDirectoryAndPath ( string culture, string &directory, string &path ) : void | ||
GetLanguageIfAvailable ( string culture ) : string | ||
GetTextOrDefault ( string culture, string key ) : string | ||
LoadFromDiskAndCache ( string culture, string path ) : void | ||
LoadMessages ( string culture ) : bool | ||
ParseBody ( TextReader fs, string line, StringBuilder sb, i18n.I18NMessage message, |
||
TryGetTextFor ( string culture, string key ) : string |
public GetBestAvailableLanguageFrom ( string languages ) : string | ||
languages | string | A sorted list of language preferences |
Résultat | string |
public GetText ( string key, string languages ) : string | ||
key | string | The default language key to search for |
languages | string | A sorted list of language preferences |
Résultat | string |