From be6c00842d0bb11af51eba3da4d6761b80129a89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Tue, 3 Feb 2009 10:33:19 +0000 Subject: [PATCH] #2657,#1718 use ngettext svn: r11820 --- src/DataViews/PedigreeView.py | 2 +- src/plugins/tool/Check.py | 38 +++++++++++++++++------------------ 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/DataViews/PedigreeView.py b/src/DataViews/PedigreeView.py index dc62388b9..393ebbd10 100644 --- a/src/DataViews/PedigreeView.py +++ b/src/DataViews/PedigreeView.py @@ -1394,7 +1394,7 @@ class PedigreeView(PageView.PersonNavView): size_menu.append(entry) for n in range(2,6): - entry = gtk.ImageMenuItem(ngettext("1 generation", "%d generations", n) %n) + entry = gtk.ImageMenuItem(ngettext("%d generation", "%d generations", n) %n) if self.force_size == n: entry.set_image(current_size_image) entry.connect("activate", self.change_force_size_cb, n) diff --git a/src/plugins/tool/Check.py b/src/plugins/tool/Check.py index c2bc7697f..b39eb2ff4 100644 --- a/src/plugins/tool/Check.py +++ b/src/plugins/tool/Check.py @@ -1297,7 +1297,7 @@ class CheckIntegrity: self.text = cStringIO.StringIO() if blink > 0: - self.text.write(ngettext("1 broken child/family link was fixed\n", \ + self.text.write(ngettext("%d broken child/family link was fixed\n", \ "%d broken child-family links were found\n", blink) % blink) for (person_handle,family_handle) in self.broken_links: person = self.db.get_person_from_handle(person_handle) @@ -1314,7 +1314,7 @@ class CheckIntegrity: self.text.write(_("%s was removed from the family of %s\n") % (cn,pn)) if plink > 0: - self.text.write(ngettext("1 broken spouse/family link was fixed\n", \ + self.text.write(ngettext("%d broken spouse/family link was fixed\n", \ "%d broken spouse/family links were found\n", plink) % plink) for (person_handle,family_handle) in self.broken_parent_links: person = self.db.get_person_from_handle(person_handle) @@ -1331,7 +1331,7 @@ class CheckIntegrity: self.text.write(_("%s was restored to the family of %s\n") % (cn,pn)) if slink > 0: - self.text.write(ngettext("1 duplicate spouse/family link was found\n", \ + self.text.write(ngettext("%d duplicate spouse/family link was found\n", \ "%d duplicate spouse/family links were found\n", slink) % slink) for (person_handle,family_handle) in self.broken_parent_links: person = self.db.get_person_from_handle(person_handle) @@ -1348,69 +1348,69 @@ class CheckIntegrity: self.text.write(_("%s was restored to the family of %s\n") % (cn,pn)) if efam == 1: - self.text.write(_("1 family with no parents or children found, removed.\n")) + self.text.write(_("%d 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(_("%d families with no parents or children, removed.\n") % efam) if rel: - self.text.write(ngettext("1 corrupted family relationship fixed\n", \ + self.text.write(ngettext("%d corrupted family relationship fixed\n", \ "%d corrupted family relationship fixed\n", rel) % rel ) if person_references: - self.text.write(ngettext("1 person was referenced but not found\n", \ + self.text.write(ngettext("%d person was referenced but not found\n", \ "%d persons were referenced, but not found\n", person_references) % person_references) if repo_references: - self.text.write(ngettext("1 repository was referenced but not found\n", \ + self.text.write(ngettext("%d repository was referenced but not found\n", \ "%d repositories were referenced, but not found\n", repo_references) % repo_references) if photos: - self.text.write(ngettext("1 media object was referenced, but not found\n", \ + self.text.write(ngettext("%d media object was referenced, but not found\n", \ "%d media objects were referenced, but not found\n", photos) % photos) if bad_photos: - self.text.write(ngettext("Reference to 1 missing media object was kept\n", \ + self.text.write(ngettext("Reference to %d missing media object was kept\n", \ "References to %d media objects were kept\n", bad_photos) % bad_photos) if replaced_photos: - self.text.write(ngettext("1 missing media object was replaced\n", \ + self.text.write(ngettext("%d missing media object was replaced\n", \ "%d missing media objects were replaced\n", replaced_photos) % replaced_photos) if removed_photos: - self.text.write(ngettext("1 missing media object was removed\n", \ + self.text.write(ngettext("%d missing media object was removed\n", \ "%d missing media objects were removed\n", removed_photos) % removed_photos) if event_invalid: - self.text.write(ngettext("1 invalid event reference was removed\n", \ + self.text.write(ngettext("%d invalid event reference was removed\n", \ "%d invalid event references were removed\n", event_invalid) % event_invalid) if birth_invalid: - self.text.write(ngettext("1 invalid birth event name was fixed\n", \ + self.text.write(ngettext("%d invalid birth event name was fixed\n", \ "%d invalid birth event names were fixed\n", birth_invalid) % birth_invalid) if death_invalid: - self.text.write(ngettext("1 invalid death event name was fixed\n", \ + self.text.write(ngettext("%d invalid death event name was fixed\n", \ "%d invalid death event names were fixed\n", death_invalid) % death_invalid) if place_references: - self.text.write(ngettext("1 place was referenced but not found\n", \ + self.text.write(ngettext("%d place was referenced but not found\n", \ "%d places were referenced, but not found\n", place_references) % place_references) if source_references: - self.text.write(ngettext("1 source was referenced but not found\n", \ + self.text.write(ngettext("%d source was referenced but not found\n", \ "%d sources were referenced, but not found\n", source_references) % source_references) if media_references: - self.text.write(ngettext("1 media object was referenced but not found\n", \ + self.text.write(ngettext("%d media object was referenced but not found\n", \ "%d media objects were referenced but not found\n", media_references) % media_references) if note_references: - self.text.write(ngettext("1 note object was referenced but not found\n", \ + self.text.write(ngettext("%d note object was referenced but not found\n", \ "%d note objects were referenced but not found\n", note_references) % note_references) if name_format: - self.text.write(ngettext("1 invalid name format reference was removed\n", \ + self.text.write(ngettext("%d invalid name format reference was removed\n", \ "%d invalid name format references were removed\n", name_format) % name_format) if empty_objs > 0 :