Method | Description | |
---|---|---|
Catalog ( ) : System |
Initializes a new instance of the Catalog class that has no translations using the current UI culture info and plural rule generated by DefaultPluralRuleGenerator for the current UI culture.
|
|
Catalog ( |
Initializes a new instance of the Catalog class that has no translations using given culture info and plural rule generated by DefaultPluralRuleGenerator for given culture.
|
|
Catalog ( ILoader loader ) : System |
Initializes a new instance of the Catalog class using the current UI culture info and loads data using given loader.
|
|
Catalog ( ILoader loader, |
Initializes a new instance of the Catalog class using given culture info and loads data using given loader.
|
|
Catalog ( Stream moStream ) : System |
Initializes a new instance of the Catalog class using the current UI culture info and loads data from specified stream using a new MoLoader instance.
|
|
Catalog ( Stream moStream, |
Initializes a new instance of the Catalog class using given culture info and loads data from specified stream using a new MoLoader instance.
|
|
Catalog ( string domain, string localeDir ) : System |
Initializes a new instance of the Catalog class using the current UI culture info and loads data for specified domain and locale directory using a new MoLoader instance.
|
|
Catalog ( string domain, string localeDir, |
Initializes a new instance of the Catalog class using given culture info and loads data for specified domain and locale directory using a new MoLoader instance.
|
|
GetParticularPluralString ( string context, string text, string pluralText, long n ) : string |
Returns the plural form for n of the translation of text using given context. Similar to
|
|
GetParticularString ( string context, string text ) : string |
Returns text translated into the selected language using given context. Similar to
|
|
GetPluralString ( string text, string pluralText, long n ) : string |
Returns the plural form for n of the translation of text. Similar to
|
|
GetPluralStringDefault ( string messageId, string defaultMessage, string defaultPluralMessage, long n ) : string |
Returns translated plural string for given messageId or defaultMessage or defaultPluralMessage on fail.
|
|
GetString ( string text ) : string |
Returns text translated into the selected language. Similar to
|
|
GetStringDefault ( string messageId, string defaultMessage ) : string |
Returns translated string for given messageId or defaultMessage on fail.
|
|
GetTranslations ( string messageId ) : string[] |
Returns all translations for given messageId.
|
|
Load ( ILoader loader ) : void |
Loads data to the current catalog using specified loader instance.
|
public Catalog ( |
||
cultureInfo | Culture info. | |
return | System |
public Catalog ( ILoader loader ) : System | ||
loader | ILoader | Loader instance. |
return | System |
public Catalog ( ILoader loader, |
||
loader | ILoader | Loader instance. |
cultureInfo | Culture info. | |
return | System |
public Catalog ( Stream moStream ) : System | ||
moStream | Stream | Stream that contain binary data in the MO file format. |
return | System |
public Catalog ( Stream moStream, |
||
moStream | Stream | Stream that contain binary data in the MO file format. |
cultureInfo | Culture info. | |
return | System |
public Catalog ( string domain, string localeDir ) : System | ||
domain | string | Catalog domain name. |
localeDir | string | Directory that contains gettext localization files. |
return | System |
public Catalog ( string domain, string localeDir, |
||
domain | string | Catalog domain name. |
localeDir | string | Directory that contains gettext localization files. |
cultureInfo | Culture info. | |
return | System |
public GetParticularPluralString ( string context, string text, string pluralText, long n ) : string | ||
context | string | Context. |
text | string | Singular form of message to translate. |
pluralText | string | Plural form of message to translate. |
n | long | Value that determines the plural form. |
return | string |
public GetParticularString ( string context, string text ) : string | ||
context | string | Context. |
text | string | Text to translate. |
return | string |
public GetPluralString ( string text, string pluralText, long n ) : string | ||
text | string | Singular form of message to translate. |
pluralText | string | Plural form of message to translate. |
n | long | Value that determines the plural form. |
return | string |
public GetPluralStringDefault ( string messageId, string defaultMessage, string defaultPluralMessage, long n ) : string | ||
messageId | string | Message ID |
defaultMessage | string | Default message singular form |
defaultPluralMessage | string | Default message plural form |
n | long | Value that determines the plural form |
return | string |
public GetString ( string text ) : string | ||
text | string | Text to translate. |
return | string |
public GetStringDefault ( string messageId, string defaultMessage ) : string | ||
messageId | string | Message ID |
defaultMessage | string | Default message |
return | string |
public GetTranslations ( string messageId ) : string[] | ||
messageId | string | |
return | string[] |
public Load ( ILoader loader ) : void | ||
loader | ILoader | Loader instance. |
return | void |