Метод | Описание | |
---|---|---|
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. | |
Результат | System |
public Catalog ( ILoader loader ) : System | ||
loader | ILoader | Loader instance. |
Результат | System |
public Catalog ( ILoader loader, |
||
loader | ILoader | Loader instance. |
cultureInfo | Culture info. | |
Результат | System |
public Catalog ( Stream moStream ) : System | ||
moStream | Stream | Stream that contain binary data in the MO file format. |
Результат | System |
public Catalog ( Stream moStream, |
||
moStream | Stream | Stream that contain binary data in the MO file format. |
cultureInfo | Culture info. | |
Результат | System |
public Catalog ( string domain, string localeDir ) : System | ||
domain | string | Catalog domain name. |
localeDir | string | Directory that contains gettext localization files. |
Результат | System |
public Catalog ( string domain, string localeDir, |
||
domain | string | Catalog domain name. |
localeDir | string | Directory that contains gettext localization files. |
cultureInfo | Culture info. | |
Результат | 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. |
Результат | string |
public GetParticularString ( string context, string text ) : string | ||
context | string | Context. |
text | string | Text to translate. |
Результат | 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. |
Результат | 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 |
Результат | string |
public GetString ( string text ) : string | ||
text | string | Text to translate. |
Результат | string |
public GetStringDefault ( string messageId, string defaultMessage ) : string | ||
messageId | string | Message ID |
defaultMessage | string | Default message |
Результат | string |
public GetTranslations ( string messageId ) : string[] | ||
messageId | string | |
Результат | string[] |
public Load ( ILoader loader ) : void | ||
loader | ILoader | Loader instance. |
Результат | void |