C# Class GettextLib.Gettext

Inheritance: IGettext
Show file Open project: while-true/gettext Class Usage Examples

Public Methods

Method Description
Gettext ( GettextCatalog catalog ) : System
NGettext ( string msgid, string msgidPlural, long n ) : string
PGettext ( string msgctxt, string msgid ) : string
PNGettext ( string msgctxt, string msgid, string msgidPlural, long n ) : string
_ ( string msgid ) : string

Private Methods

Method Description
Lookup ( string context, string msgid ) : Translation.TranslationString
LookupPlural ( string context, string msgid, string msgidplural ) : Translation
PluralTranslate ( string msgid, string msgidPlural, long n, Translation pl ) : string

Method Details

Gettext() public method

public Gettext ( GettextCatalog catalog ) : System
catalog GettextLib.Catalog.GettextCatalog
return System

NGettext() public method

public NGettext ( string msgid, string msgidPlural, long n ) : string
msgid string
msgidPlural string
n long
return string

PGettext() public method

public PGettext ( string msgctxt, string msgid ) : string
msgctxt string
msgid string
return string

PNGettext() public method

public PNGettext ( string msgctxt, string msgid, string msgidPlural, long n ) : string
msgctxt string
msgid string
msgidPlural string
n long
return string

_() public method

public _ ( string msgid ) : string
msgid string
return string