gettextize 3 strings where _() was missing

svn: r4541
This commit is contained in:
Eero Tamminen 2005-05-10 20:19:11 +00:00
parent cab8c00936
commit a86c91eb2d
2 changed files with 10 additions and 6 deletions

View File

@ -1,3 +1,7 @@
2005-05-10 Eero Tamminen <eerot@sf>
* src/plugins/StatisticsChart.po: add gettext _() to three strings
where it was missing
2005-05-10 Don Allingham <don@gramps-project.org> 2005-05-10 Don Allingham <don@gramps-project.org>
* src/StartupDialog.py: check for broken Slackware library, and * src/StartupDialog.py: check for broken Slackware library, and
missing gconf installation, present error messages instead of missing gconf installation, present error messages instead of

View File

@ -524,9 +524,9 @@ class StatisticsChart(Report.Report):
# document heading # document heading
mapping['chart_title'] = table[0] mapping['chart_title'] = table[0]
if genders: if genders:
heading = "%(genders)s born %(year_from)04d-%(year_to)04d: %(chart_title)s" % mapping heading = _("%(genders)s born %(year_from)04d-%(year_to)04d: %(chart_title)s") % mapping
else: else:
heading = "Persons born %(year_from)04d-%(year_to)04d: %(chart_title)s" % mapping heading = _("Persons born %(year_from)04d-%(year_to)04d: %(chart_title)s") % mapping
self.data.append((heading, table[1], lookup)) self.data.append((heading, table[1], lookup))
#DEBUG #DEBUG
#print heading #print heading
@ -899,7 +899,7 @@ class StatisticsChartOptions(ReportOptions.ReportOptions):
tip = _("With fewer items pie chart and legend will be used instead of a bar chart.") tip = _("With fewer items pie chart and legend will be used instead of a bar chart.")
self.bar_items = gtk.Entry(2) self.bar_items = gtk.Entry(2)
self.bar_items.set_text(str(self.options_dict['bar_items'])) self.bar_items.set_text(str(self.options_dict['bar_items']))
dialog.add_option("Min. bar char items", self.bar_items, tip) dialog.add_option(_("Min. bar char items"), self.bar_items, tip)
# ------------------------------------------------- # -------------------------------------------------
# List of available charts on a separate option tab # List of available charts on a separate option tab
@ -919,12 +919,12 @@ class StatisticsChartOptions(ReportOptions.ReportOptions):
vbox = gtk.VBox() vbox = gtk.VBox()
hbox.add(vbox) hbox.add(vbox)
tip = _("Mark checkboxes to add charts with indicated data") tip = _("Mark checkboxes to add charts with indicated data")
dialog.add_frame_option("Chart Selection", "", hbox, tip) dialog.add_frame_option(_("Chart Selection"), "", hbox, tip)
hbox.show_all() hbox.show_all()
# Note about children # Note about children
label = gtk.Label(_("Note that both biological and adopted children are taken into account.")) label = gtk.Label(_("Note that both biological and adopted children are taken into account."))
dialog.add_frame_option("Chart Selection", "", label) dialog.add_frame_option(_("Chart Selection"), "", label)
def parse_user_options(self, dialog): def parse_user_options(self, dialog):
@ -958,5 +958,5 @@ register_report(
status = (_("Alpha")), status = (_("Alpha")),
author_name="Eero Tamminen", author_name="Eero Tamminen",
author_email="", author_email="",
description= _("Generates statistical bar graphs.") description= _("Generates statistical bar and pie charts of the people in the database.")
) )