String changes for translation purposes
svn: r56
This commit is contained in:
@@ -57,7 +57,7 @@ db = None
|
||||
#
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
class AncestorChart:
|
||||
class AncestorReport:
|
||||
|
||||
def __init__(self,database,person,output,doc, max):
|
||||
self.doc = doc
|
||||
@@ -211,7 +211,7 @@ def report(database,person):
|
||||
if no_pdf == 1:
|
||||
topDialog.get_widget("pdf").set_sensitive(0)
|
||||
|
||||
title = _("Ancestor chart for %s") % name
|
||||
title = _("Ancestor Chart for %s") % name
|
||||
topDialog.get_widget("labelTitle").set_text(title)
|
||||
topDialog.signal_autoconnect({
|
||||
"destroy_passed_object" : utils.destroy_passed_object,
|
||||
@@ -243,7 +243,7 @@ def on_save_clicked(obj):
|
||||
else:
|
||||
document = PdfDrawDoc(paper,orien)
|
||||
|
||||
MyReport = AncestorChart(db,active_person,outputName,document,max_gen)
|
||||
MyReport = AncestorReport(db,active_person,outputName,document,max_gen)
|
||||
|
||||
MyReport.setup()
|
||||
MyReport.write_report()
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
#
|
||||
|
||||
"Generate files/Ahnentafel Chart"
|
||||
"Generate files/Ahnentafel Report"
|
||||
|
||||
import RelLib
|
||||
import const
|
||||
@@ -163,7 +163,7 @@ class AncestorReport:
|
||||
|
||||
name = self.start.getPrimaryName().getRegularName()
|
||||
self.doc.start_paragraph("Title")
|
||||
title = _("Ahnentafel Chart for %s") % name
|
||||
title = _("Ahnentafel Report for %s") % name
|
||||
self.doc.write_text(title)
|
||||
self.doc.end_paragraph()
|
||||
|
||||
@@ -214,10 +214,10 @@ class AncestorReport:
|
||||
(name,date.getDate())
|
||||
else:
|
||||
if place != "":
|
||||
t = _("%s was born in %s in %s. ") % \
|
||||
t = _("%s was born in the year %s in %s. ") % \
|
||||
(name,date.getDate(),place)
|
||||
else:
|
||||
t = _("%s was born in %s. ") % \
|
||||
t = _("%s was born in the year %s. ") % \
|
||||
(name,date.getDate())
|
||||
self.doc.write_text(t)
|
||||
|
||||
@@ -255,16 +255,16 @@ class AncestorReport:
|
||||
else:
|
||||
if male:
|
||||
if place != "":
|
||||
t = _("He died in %s in %s") % \
|
||||
t = _("He died in the year %s in %s") % \
|
||||
(date.getDate(),place)
|
||||
else:
|
||||
t = _("He died in %s") % date.getDate()
|
||||
t = _("He died in the year %s") % date.getDate()
|
||||
else:
|
||||
if place != "":
|
||||
t = _("She died in %s in %s") % \
|
||||
t = _("She died in the year %s in %s") % \
|
||||
(date.getDate(),place)
|
||||
else:
|
||||
t = _("She died in %s") % date.getDate()
|
||||
t = _("She died in the year %s") % date.getDate()
|
||||
|
||||
self.doc.write_text(t)
|
||||
|
||||
@@ -284,10 +284,10 @@ class AncestorReport:
|
||||
date.getDate()
|
||||
else:
|
||||
if place != "":
|
||||
t = _(", and was buried in %s in %s.") % \
|
||||
t = _(", and was buried in the year %s in %s.") % \
|
||||
(date.getDate(),place)
|
||||
else:
|
||||
t = _(", and was buried in %s.") % \
|
||||
t = _(", and was buried in the year %s.") % \
|
||||
date.getDate()
|
||||
else:
|
||||
t = _(" and was buried in %s." % place)
|
||||
@@ -397,7 +397,7 @@ def get_description():
|
||||
return _("Produces a textual ancestral report")
|
||||
|
||||
def get_name():
|
||||
return _("Generate files/Ahnentafel Chart")
|
||||
return _("Generate files/Ahnentafel Report")
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
|
||||
@@ -93,5 +93,5 @@ def get_name():
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
def get_description():
|
||||
return _("Provides a browsable hierarchy of the active person")
|
||||
return _("Provides a browsable hierarchy based on the active person")
|
||||
|
||||
|
||||
@@ -483,11 +483,11 @@ def dump_person(person,prefix,templateTop,templateBottom,targetDir):
|
||||
name_or_link(sp_mother,prefix))
|
||||
html.write("<LI>%s</LI>\n" % txt)
|
||||
elif sp_father:
|
||||
txt = _("Spouse's father: %s and %s") % \
|
||||
txt = _("Spouse's father: %s") % \
|
||||
name_or_link(sp_father,prefix)
|
||||
html.write("<LI>%s</LI>\n" % txt)
|
||||
elif sp_mother:
|
||||
txt = _("Spouse's father: %s and %s") % \
|
||||
txt = _("Spouse's mother: %s") % \
|
||||
name_or_link(sp_mother,prefix)
|
||||
html.write("<LI>%s</LI>\n" % txt)
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<widget>
|
||||
<class>GnomeDialog</class>
|
||||
<name>dialog1</name>
|
||||
<title>GRAMPS - Ancestor Chart</title>
|
||||
<title>Gramps - Ancestor Chart</title>
|
||||
<type>GTK_WINDOW_DIALOG</type>
|
||||
<position>GTK_WIN_POS_NONE</position>
|
||||
<modal>False</modal>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<widget>
|
||||
<class>GnomeDialog</class>
|
||||
<name>dialog1</name>
|
||||
<title>GRAMPS - Ahnentalfel Report</title>
|
||||
<title>Gramps - Ahnentafel Report</title>
|
||||
<type>GTK_WINDOW_DIALOG</type>
|
||||
<position>GTK_WIN_POS_NONE</position>
|
||||
<modal>False</modal>
|
||||
@@ -97,7 +97,7 @@
|
||||
<widget>
|
||||
<class>GtkLabel</class>
|
||||
<name>labelTitle</name>
|
||||
<label>Ahnentalfel Report</label>
|
||||
<label>Ahnentafel Report</label>
|
||||
<justify>GTK_JUSTIFY_CENTER</justify>
|
||||
<wrap>False</wrap>
|
||||
<xalign>0.5</xalign>
|
||||
@@ -215,7 +215,7 @@
|
||||
<class>GtkRadioButton</class>
|
||||
<name>abiword</name>
|
||||
<can_focus>True</can_focus>
|
||||
<label>Abiword</label>
|
||||
<label>AbiWord</label>
|
||||
<active>False</active>
|
||||
<draw_indicator>True</draw_indicator>
|
||||
<group>format</group>
|
||||
|
||||
@@ -1535,7 +1535,7 @@
|
||||
<widget>
|
||||
<class>GtkWindow</class>
|
||||
<name>message</name>
|
||||
<title>GRAMPS - Merge People</title>
|
||||
<title>Gramps - Merge People</title>
|
||||
<type>GTK_WINDOW_DIALOG</type>
|
||||
<position>GTK_WIN_POS_NONE</position>
|
||||
<modal>True</modal>
|
||||
@@ -1638,7 +1638,7 @@
|
||||
<widget>
|
||||
<class>GtkDialog</class>
|
||||
<name>dialog</name>
|
||||
<title>GRAMPS - Merge People</title>
|
||||
<title>Gramps - Merge People</title>
|
||||
<type>GTK_WINDOW_DIALOG</type>
|
||||
<position>GTK_WIN_POS_NONE</position>
|
||||
<modal>False</modal>
|
||||
|
||||
Reference in New Issue
Block a user