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:
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")
#--------------------------------------------------------------------
#

View File

@ -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,

View File

@ -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,

View File

@ -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)

View File

@ -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()

View File

@ -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)

View File

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