C# Class GettextLib.GettextFilesystemFactory

Automatically loads files from a dedicated po directory in your project. Name of the file should specify the culture, like en-US.po for American English. Monitors when files are changed, added or removed. Thread safe.
Inheritance: GettextFactoryBase, IDisposable
Mostrar archivo Open project: while-true/gettext Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
GetContext ( string langId ) : GettextTranslationContext
GettextFilesystemFactory ( string poDirectory, LocaleFileOrganizationEnum fileOrganization ) : System

Private Methods

Method Description
FileSystemWatcherEventHandler ( object source, FileSystemEventArgs e ) : void
GettextFilesystemFactory ( ) : System
LoadAllLanguages ( DirectoryInfo d, LocaleFileOrganizationEnum fileOrganization ) : List
LoadCatalog ( FileInfo f, LocaleFileOrganizationEnum fileOrganization ) : LanguageTranslation
LoadIntoCatalogs ( IEnumerable l, LanguageTranslation>.Dictionary d ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

GetContext() public method

public GetContext ( string langId ) : GettextTranslationContext
langId string
return GettextTranslationContext

GettextFilesystemFactory() public method

public GettextFilesystemFactory ( string poDirectory, LocaleFileOrganizationEnum fileOrganization ) : System
poDirectory string
fileOrganization LocaleFileOrganizationEnum
return System