ngettext
No overview available.
def ngettext(
singular: string,
plural: string,
number: integer
) - > string
Translates a message and selects the appropriate plural form based on the provided numeric value.
Parameters
| Name | Type | Description |
|---|---|---|
| singular | string | The default singular form of the message to be translated. |
| plural | string | The default plural form of the message to be translated. |
| number | integer | The numeric value used to determine which plural form of the message should be used. |
Returns
| Type | Description |
|---|---|
string | The translated string in either singular or plural form, depending on the value of the number parameter. |