MoFile.ngettext

Get translated message considering plural forms.

struct MoFile
pure const
string
ngettext
(
string msgid
,,
int n
)

Parameters

msgid string

Untranslated message in singular form

msgid_plural string

Untranslated message in plural form.

n int

Number to calculate a plural form.

Return Value

Type: string

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.

Meta