From 93f724bc47e3b01d2d9c9cabb4757c197be093db Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Tue, 18 Mar 2014 18:24:58 -0700 Subject: [PATCH] fix translation of children count to use ngettext --- src/plugins/graph/GVFamilyLines.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/graph/GVFamilyLines.py b/src/plugins/graph/GVFamilyLines.py index e82ee7665..b0dc2d421 100644 --- a/src/plugins/graph/GVFamilyLines.py +++ b/src/plugins/graph/GVFamilyLines.py @@ -35,6 +35,7 @@ Family Lines, a GraphViz-based plugin for Gramps. # #------------------------------------------------------------------------ from gen.ggettext import gettext as _ +from gen.ggettext import ngettext from functools import partial #------------------------------------------------------------------------ @@ -915,10 +916,9 @@ class FamilyLinesReport(Report): childrenStr = None if self._incchildcount: child_count = len(family.get_child_ref_list()) -# if child_count == 1: -# childrenStr = _('1 child') - if child_count > 1: - childrenStr = _('%d children') % child_count + if child_count >= 1: + childrenStr = ngettext( + "%d child", "%d children", child_count) % child_count label = '' if weddingDate: