Mark some words for translation.

svn: r629
This commit is contained in:
David Hampton 2001-12-18 00:00:33 +00:00
parent 0f4dafd4c9
commit 9758e5d16a
7 changed files with 18 additions and 18 deletions

View File

@ -146,7 +146,7 @@ class AncestorReport:
try: try:
self.doc.open(self.output) self.doc.open(self.output)
except: except:
print "Document write failure" print _("Document write failure")
generation = 1 generation = 1
done = 0 done = 0
@ -165,7 +165,7 @@ class AncestorReport:
try: try:
self.doc.close() self.doc.close()
except: except:
print "Document write failure" print _("Document write failure")
#-------------------------------------------------------------------- #--------------------------------------------------------------------
# #

View File

@ -319,7 +319,7 @@ def report(database,person):
style_sheet_list = StyleSheetList("ancestor_report.xml",styles) style_sheet_list = StyleSheetList("ancestor_report.xml",styles)
build_menu(None) 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({ topDialog.signal_autoconnect({
"destroy_passed_object" : utils.destroy_passed_object, "destroy_passed_object" : utils.destroy_passed_object,
"on_style_edit_clicked" : on_style_edit_clicked, "on_style_edit_clicked" : on_style_edit_clicked,

View File

@ -146,14 +146,14 @@ class DetAncestorReport:
if child.getBirth().getDate() != "" and \ if child.getBirth().getDate() != "" and \
child.getBirth().getPlaceName() != "": child.getBirth().getPlaceName() != "":
#print child.getBirth().getPlace().__dict__ #print child.getBirth().getPlace().__dict__
t= t+ " Born: "+child.getBirth().getDate() + \ t= t+ _(" Born: ")+child.getBirth().getDate() + \
" "+child.getBirth().getPlaceName() " "+child.getBirth().getPlaceName()
#print "getDeath()", child.getDeath().__dict__ #print "getDeath()", child.getDeath().__dict__
if child.getDeath().getPlace() != None: if child.getDeath().getPlace() != None:
# print child.getDeath().getPlace().__dict__ # print child.getDeath().getPlace().__dict__
if child.getDeath().getDate() != "" or \ if child.getDeath().getDate() != "" or \
child.getDeath().getPlaceName() != "": child.getDeath().getPlaceName() != "":
t= t+ " Died: "+child.getDeath().getDate() + \ t= t+ _(" Died: ")+child.getDeath().getDate() + \
" "+child.getDeath().getPlaceName() " "+child.getDeath().getPlaceName()
self.doc.write_text(_(t)) self.doc.write_text(_(t))
self.doc.end_paragraph() self.doc.end_paragraph()
@ -169,9 +169,9 @@ class DetAncestorReport:
if rptOptions.firstName == reportOptions.Yes: if rptOptions.firstName == reportOptions.Yes:
firstName= person.getPrimaryName().getFirstName() firstName= person.getPrimaryName().getFirstName()
elif person.getGender() == RelLib.Person.male: elif person.getGender() == RelLib.Person.male:
firstName= "He" firstName= _("He")
else: else:
firstName= "She" firstName= _("She")
self.doc.start_bold() self.doc.start_bold()
self.doc.write_text(name) self.doc.write_text(name)
@ -223,7 +223,7 @@ class DetAncestorReport:
if date.getDayValid() and date.getMonthValid() and \ if date.getDayValid() and date.getMonthValid() and \
rptOptions.fullDate == reportOptions.Yes: rptOptions.fullDate == reportOptions.Yes:
if place != "": 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: else:
self.doc.write_text(_(" was born on %s.") % date.getDate()) self.doc.write_text(_(" was born on %s.") % date.getDate())
elif place != "": elif place != "":
@ -357,9 +357,9 @@ class DetAncestorReport:
if person.getGender() == RelLib.Person.male: if person.getGender() == RelLib.Person.male:
if fam.getMother() != None: if fam.getMother() != None:
spouse= fam.getMother().getPrimaryName().getRegularName() spouse= fam.getMother().getPrimaryName().getRegularName()
heshe= "He" heshe= _("He")
else: else:
heshe= "She" heshe= _("She")
if fam.getFather() != None: if fam.getFather() != None:
spouse= fam.getFather().getPrimaryName().getRegularName() spouse= fam.getFather().getPrimaryName().getRegularName()
@ -416,9 +416,9 @@ class DetAncestorReport:
ind= fam.getMother() ind= fam.getMother()
person= fam.getMother().getPrimaryName().getRegularName() person= fam.getMother().getPrimaryName().getRegularName()
firstName= fam.getMother().getPrimaryName().getFirstName() firstName= fam.getMother().getPrimaryName().getFirstName()
heshe= "He" heshe= _("He")
else: else:
heshe= "She" heshe= _("She")
if fam.getFather() != None: if fam.getFather() != None:
ind= fam.getFather() ind= fam.getFather()
person= fam.getFather().getPrimaryName().getRegularName() person= fam.getFather().getPrimaryName().getRegularName()
@ -554,7 +554,7 @@ def report(database,person):
style_sheet_list = StyleSheetList("det_ancestor_report.xml",styles) style_sheet_list = StyleSheetList("det_ancestor_report.xml",styles)
build_menu(None) 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({ topDialog.signal_autoconnect({
"destroy_passed_object" : utils.destroy_passed_object, "destroy_passed_object" : utils.destroy_passed_object,
"on_style_edit_clicked" : on_style_edit_clicked, "on_style_edit_clicked" : on_style_edit_clicked,

View File

@ -177,7 +177,7 @@ class EventComparison:
my_list.append(person) my_list.append(person)
if len(my_list) == 0: if len(my_list) == 0:
gnome.ui.GnomeWarningDialog("No matches were found") gnome.ui.GnomeWarningDialog(_("No matches were found"))
else: else:
DisplayChart(my_list) DisplayChart(my_list)

View File

@ -132,9 +132,9 @@ class FamilyGroup:
def dump_parent(self,person): def dump_parent(self,person):
if person.getGender() == RelLib.Person.male: if person.getGender() == RelLib.Person.male:
id = "Husband" id = _("Husband")
else: else:
id = "Wife" id = _("Wife")
self.doc.start_table(id,'ParentTable') self.doc.start_table(id,'ParentTable')
self.doc.start_row() self.doc.start_row()

View File

@ -206,7 +206,7 @@ def report(database,person):
GDK.POINTER_MOTION_MASK | GDK.POINTER_MOTION_MASK |
GDK.POINTER_MOTION_HINT_MASK) GDK.POINTER_MOTION_HINT_MASK)
button = GtkButton("Quit") button = GtkButton(_("Quit"))
hbox = GtkHBox(spacing=3) hbox = GtkHBox(spacing=3)
vbox.pack_start(button, expand=FALSE, fill=FALSE) vbox.pack_start(button, expand=FALSE, fill=FALSE)
button.connect("clicked", win.destroy) button.connect("clicked", win.destroy)

View File

@ -155,7 +155,7 @@
<width>350</width> <width>350</width>
<history_id>family_group</history_id> <history_id>family_group</history_id>
<max_saved>10</max_saved> <max_saved>10</max_saved>
<title>Save Family Group Report</title> <title>Save Individual Summary</title>
<directory>False</directory> <directory>False</directory>
<modal>False</modal> <modal>False</modal>
<child> <child>