From a86c91eb2d891815dd6740af9dd07e8e0c94ce61 Mon Sep 17 00:00:00 2001 From: Eero Tamminen Date: Tue, 10 May 2005 20:19:11 +0000 Subject: [PATCH] gettextize 3 strings where _() was missing svn: r4541 --- gramps2/ChangeLog | 4 ++++ gramps2/src/plugins/StatisticsChart.py | 12 ++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index d39b15d01..f920959f5 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2005-05-10 Eero Tamminen + * src/plugins/StatisticsChart.po: add gettext _() to three strings + where it was missing + 2005-05-10 Don Allingham * src/StartupDialog.py: check for broken Slackware library, and missing gconf installation, present error messages instead of diff --git a/gramps2/src/plugins/StatisticsChart.py b/gramps2/src/plugins/StatisticsChart.py index 15add765d..787fb1aa6 100755 --- a/gramps2/src/plugins/StatisticsChart.py +++ b/gramps2/src/plugins/StatisticsChart.py @@ -524,9 +524,9 @@ class StatisticsChart(Report.Report): # document heading mapping['chart_title'] = table[0] 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: - 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)) #DEBUG #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.") self.bar_items = gtk.Entry(2) 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 @@ -919,12 +919,12 @@ class StatisticsChartOptions(ReportOptions.ReportOptions): vbox = gtk.VBox() hbox.add(vbox) 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() # Note about children 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): @@ -958,5 +958,5 @@ register_report( status = (_("Alpha")), author_name="Eero Tamminen", author_email="", - description= _("Generates statistical bar graphs.") + description= _("Generates statistical bar and pie charts of the people in the database.") )