C# Class GettextLib.GettextFactory

Inheritance: GettextFactoryBase
Datei anzeigen Open project: while-true/gettext

Public Methods

Method Description
AddTranslation ( string languageId, Stream poFileContent, CultureInfo culture = null ) : void

Adds translations to the factory.

GetContext ( string langId ) : GettextTranslationContext
GettextFactory ( ) : System

Method Details

AddTranslation() public method

Adds translations to the factory.
public AddTranslation ( string languageId, Stream poFileContent, CultureInfo culture = null ) : void
languageId string
poFileContent Stream
culture System.Globalization.CultureInfo Culture to use for this translations. If it isn't specified, use the invariant culture.
return void

GetContext() public method

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

GettextFactory() public method

public GettextFactory ( ) : System
return System