use ngettext for proper plural forms use
This commit is contained in:
parent
1021b6d178
commit
4a0ce62361
@ -2188,16 +2188,17 @@ class CheckIntegrity(object):
|
|||||||
% {'person': cn, 'family': pn}
|
% {'person': cn, 'family': pn}
|
||||||
)
|
)
|
||||||
|
|
||||||
if efam == 1:
|
if efam:
|
||||||
self.text.write(
|
self.text.write(
|
||||||
_("1 family with no parents or children found, removed.\n")
|
# translators: leave all/any {...} untranslated
|
||||||
)
|
ngettext("{quantity} family "
|
||||||
self.text.write("\t%s\n" % self.empty_family[0])
|
"with no parents or children found, removed.\n",
|
||||||
elif efam > 1:
|
"{quantity} families "
|
||||||
self.text.write(
|
"with no parents or children found, removed.\n",
|
||||||
_("%(quantity)d families with no parents or children, "
|
efam).format(quantity=efam)
|
||||||
"removed.\n") % {'quantity': efam}
|
|
||||||
)
|
)
|
||||||
|
if efam == 1:
|
||||||
|
self.text.write("\t%s\n" % self.empty_family[0])
|
||||||
|
|
||||||
if rel:
|
if rel:
|
||||||
self.text.write(
|
self.text.write(
|
||||||
|
Loading…
Reference in New Issue
Block a user