diff --git a/gramps/src/plugins/AncestorChart.py b/gramps/src/plugins/AncestorChart.py index ab0ab5ce5..bbf0f0235 100644 --- a/gramps/src/plugins/AncestorChart.py +++ b/gramps/src/plugins/AncestorChart.py @@ -146,7 +146,7 @@ class AncestorReport: try: self.doc.open(self.output) except: - print "Document write failure" + print _("Document write failure") generation = 1 done = 0 @@ -165,7 +165,7 @@ class AncestorReport: try: self.doc.close() except: - print "Document write failure" + print _("Document write failure") #-------------------------------------------------------------------- # diff --git a/gramps/src/plugins/AncestorReport.py b/gramps/src/plugins/AncestorReport.py index ecc1416ca..677400c21 100644 --- a/gramps/src/plugins/AncestorReport.py +++ b/gramps/src/plugins/AncestorReport.py @@ -319,7 +319,7 @@ def report(database,person): style_sheet_list = StyleSheetList("ancestor_report.xml",styles) build_menu(None) - topDialog.get_widget("labelTitle").set_text("Ahnentafel Report for " + name) + topDialog.get_widget("labelTitle").set_text(_("Ahnentafel Report for %s") % name) topDialog.signal_autoconnect({ "destroy_passed_object" : utils.destroy_passed_object, "on_style_edit_clicked" : on_style_edit_clicked, diff --git a/gramps/src/plugins/DetAncestralReport.py b/gramps/src/plugins/DetAncestralReport.py index 532b6fdd8..292ef2931 100644 --- a/gramps/src/plugins/DetAncestralReport.py +++ b/gramps/src/plugins/DetAncestralReport.py @@ -146,14 +146,14 @@ class DetAncestorReport: if child.getBirth().getDate() != "" and \ child.getBirth().getPlaceName() != "": #print child.getBirth().getPlace().__dict__ - t= t+ " Born: "+child.getBirth().getDate() + \ + t= t+ _(" Born: ")+child.getBirth().getDate() + \ " "+child.getBirth().getPlaceName() #print "getDeath()", child.getDeath().__dict__ if child.getDeath().getPlace() != None: # print child.getDeath().getPlace().__dict__ if child.getDeath().getDate() != "" or \ child.getDeath().getPlaceName() != "": - t= t+ " Died: "+child.getDeath().getDate() + \ + t= t+ _(" Died: ")+child.getDeath().getDate() + \ " "+child.getDeath().getPlaceName() self.doc.write_text(_(t)) self.doc.end_paragraph() @@ -169,9 +169,9 @@ class DetAncestorReport: if rptOptions.firstName == reportOptions.Yes: firstName= person.getPrimaryName().getFirstName() elif person.getGender() == RelLib.Person.male: - firstName= "He" + firstName= _("He") else: - firstName= "She" + firstName= _("She") self.doc.start_bold() self.doc.write_text(name) @@ -223,7 +223,7 @@ class DetAncestorReport: if date.getDayValid() and date.getMonthValid() and \ rptOptions.fullDate == reportOptions.Yes: if place != "": - self.doc.write_text(" was born on %s in %s." % (date.getDate(), place)) + self.doc.write_text(_(" was born on %s in %s.") % (date.getDate(), place)) else: self.doc.write_text(_(" was born on %s.") % date.getDate()) elif place != "": @@ -357,9 +357,9 @@ class DetAncestorReport: if person.getGender() == RelLib.Person.male: if fam.getMother() != None: spouse= fam.getMother().getPrimaryName().getRegularName() - heshe= "He" + heshe= _("He") else: - heshe= "She" + heshe= _("She") if fam.getFather() != None: spouse= fam.getFather().getPrimaryName().getRegularName() @@ -416,9 +416,9 @@ class DetAncestorReport: ind= fam.getMother() person= fam.getMother().getPrimaryName().getRegularName() firstName= fam.getMother().getPrimaryName().getFirstName() - heshe= "He" + heshe= _("He") else: - heshe= "She" + heshe= _("She") if fam.getFather() != None: ind= fam.getFather() person= fam.getFather().getPrimaryName().getRegularName() @@ -554,7 +554,7 @@ def report(database,person): style_sheet_list = StyleSheetList("det_ancestor_report.xml",styles) build_menu(None) - topDialog.get_widget("labelTitle").set_text("Detailed Ancestral Report for " + name) + topDialog.get_widget("labelTitle").set_text(_("Detailed Ancestral Report for %s") % name) topDialog.signal_autoconnect({ "destroy_passed_object" : utils.destroy_passed_object, "on_style_edit_clicked" : on_style_edit_clicked, diff --git a/gramps/src/plugins/EventCmp.py b/gramps/src/plugins/EventCmp.py index 69da346c8..8b4b813af 100644 --- a/gramps/src/plugins/EventCmp.py +++ b/gramps/src/plugins/EventCmp.py @@ -177,7 +177,7 @@ class EventComparison: my_list.append(person) if len(my_list) == 0: - gnome.ui.GnomeWarningDialog("No matches were found") + gnome.ui.GnomeWarningDialog(_("No matches were found")) else: DisplayChart(my_list) diff --git a/gramps/src/plugins/FamilyGroup.py b/gramps/src/plugins/FamilyGroup.py index 5160e7292..58d783de3 100644 --- a/gramps/src/plugins/FamilyGroup.py +++ b/gramps/src/plugins/FamilyGroup.py @@ -132,9 +132,9 @@ class FamilyGroup: def dump_parent(self,person): if person.getGender() == RelLib.Person.male: - id = "Husband" + id = _("Husband") else: - id = "Wife" + id = _("Wife") self.doc.start_table(id,'ParentTable') self.doc.start_row() diff --git a/gramps/src/plugins/Graph.py b/gramps/src/plugins/Graph.py index 12e6455be..a27e0485d 100644 --- a/gramps/src/plugins/Graph.py +++ b/gramps/src/plugins/Graph.py @@ -206,7 +206,7 @@ def report(database,person): GDK.POINTER_MOTION_MASK | GDK.POINTER_MOTION_HINT_MASK) - button = GtkButton("Quit") + button = GtkButton(_("Quit")) hbox = GtkHBox(spacing=3) vbox.pack_start(button, expand=FALSE, fill=FALSE) button.connect("clicked", win.destroy) diff --git a/gramps/src/plugins/indsum.glade b/gramps/src/plugins/indsum.glade index 40cf77c42..fe3cce12c 100644 --- a/gramps/src/plugins/indsum.glade +++ b/gramps/src/plugins/indsum.glade @@ -155,7 +155,7 @@ 350 family_group 10 - Save Family Group Report + Save Individual Summary False False