finesse.utilities.text.ngettext

finesse.utilities.text.ngettext(n, fsingle, fplural, sub=True)[source]

Get the singular or plural form of the specified messages based on n.

Simplified version of the Python standard library function gettext.ngettext().

Parameters

n : int

The number to use to decide which form to return.

fsingle, fplural : str

Single and plural templates.

sub : bool, optional

Substitute n into the templates; defaults to True.