== Plurals ==
In some strings, it's necessary to specify different translations depending upon the number of an argument. For example,
This allows languages with gender differences to map nicely into your sentence.
== Provide support for plural forms ==
Plurals are handled differently in various languages. Whilst English or German have a singular and a plural form, other languages like Turkish don't distinguish between plural or singular and there are languages which use different plurals for different numbers, <abbr title="exempli gratia - Latin phrase meaning 'for example'">e.g.</abbr>, Polish.
Gramps provides a [[Translating_Gramps#Plural_forms|plural forms]] support, useful for locales with multiples plurals according to a number (''often slavic based languages'') or for Asian family languages (''singular = plural'').
Note, some locales need singular form with [http://en.wikipedia.org/wiki/Plural#Zero zero] and plural form might be also used in this case.
We need to call module :
from gen.ggettext import ngettext
and code like this :
ngettext("singular %d", "plural %d", n) %n
msg = ngettext('Import Complete: %d second',
'Import Complete: %d seconds', t ) % t
== Provide a context support ==