From 4a0ce62361232bbf7ea6fcd820b074cbd652a03c Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Wed, 9 Dec 2015 10:08:03 -0800 Subject: [PATCH] use ngettext for proper plural forms use --- gramps/plugins/tool/check.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/gramps/plugins/tool/check.py b/gramps/plugins/tool/check.py index 8a9ceccf9..799261d4c 100644 --- a/gramps/plugins/tool/check.py +++ b/gramps/plugins/tool/check.py @@ -2188,16 +2188,17 @@ class CheckIntegrity(object): % {'person': cn, 'family': pn} ) - if efam == 1: + if efam: self.text.write( - _("1 family with no parents or children found, removed.\n") - ) - self.text.write("\t%s\n" % self.empty_family[0]) - elif efam > 1: - self.text.write( - _("%(quantity)d families with no parents or children, " - "removed.\n") % {'quantity': efam} + # translators: leave all/any {...} untranslated + ngettext("{quantity} family " + "with no parents or children found, removed.\n", + "{quantity} families " + "with no parents or children found, removed.\n", + efam).format(quantity=efam) ) + if efam == 1: + self.text.write("\t%s\n" % self.empty_family[0]) if rel: self.text.write(