Function MoFile.ngettext
Get translated message considering plural forms.
string ngettext
(
string msgid,
string msgid_plural,
int n
) pure @safe const;
Parameters
Name | Description |
---|---|
msgid | Untranslated message in singular form |
msgid_plural | Untranslated message in plural form. |
n | Number to calculate a plural form. |
Returns
Translated string in plural form dependent on number n. If translation for this msgid does not exist or MoFile is default constructed then the msgid is returned if n == 1 and msgid_plural otherwise.