* src/plugins/StatisticsChart.py: Minor stylistic corrections.
* src/GenericFilter.py: Minor stylistic corrections. svn: r4602
This commit is contained in:
parent
e4e817de57
commit
026da172b7
@ -7,6 +7,9 @@
|
|||||||
2005-05-16 Alex Roitman <shura@gramps-project.org>
|
2005-05-16 Alex Roitman <shura@gramps-project.org>
|
||||||
* src/ansel_utf8.py: Convert to Unix end-of-line.
|
* src/ansel_utf8.py: Convert to Unix end-of-line.
|
||||||
|
|
||||||
|
* src/plugins/StatisticsChart.py: Minor stylistic corrections.
|
||||||
|
* src/GenericFilter.py: Minor stylistic corrections.
|
||||||
|
|
||||||
2005-05-16 Don Allingham <don@gramps-project.org>
|
2005-05-16 Don Allingham <don@gramps-project.org>
|
||||||
* src/FamilyView.py: fix reordering of children in family view
|
* src/FamilyView.py: fix reordering of children in family view
|
||||||
|
|
||||||
|
@ -612,8 +612,7 @@ class IsChildOfFilterMatch(Rule):
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
class IsSiblingOfFilterMatch(Rule):
|
class IsSiblingOfFilterMatch(Rule):
|
||||||
"""Rule that checks for a person that is a sibling
|
"""Rule that checks for siblings of someone matched by a filter"""
|
||||||
of someone matched by a filter"""
|
|
||||||
|
|
||||||
labels = [ _('Filter name:') ]
|
labels = [ _('Filter name:') ]
|
||||||
|
|
||||||
@ -634,7 +633,7 @@ class IsSiblingOfFilterMatch(Rule):
|
|||||||
return 'Is a sibling of filter match'
|
return 'Is a sibling of filter match'
|
||||||
|
|
||||||
def description(self):
|
def description(self):
|
||||||
return _("Matches the person that is a sibling of someone matched by a filter")
|
return _("Matches siblings of someone matched by a filter")
|
||||||
|
|
||||||
def category(self):
|
def category(self):
|
||||||
return _('Family filters')
|
return _('Family filters')
|
||||||
@ -1678,10 +1677,10 @@ class NoBirthdate(Rule):
|
|||||||
labels = []
|
labels = []
|
||||||
|
|
||||||
def name(self):
|
def name(self):
|
||||||
return 'People without a birth date'
|
return 'People without a known birth date'
|
||||||
|
|
||||||
def description(self):
|
def description(self):
|
||||||
return _("Matches persons without a birthdate")
|
return _("Matches persons without a known birthdate")
|
||||||
|
|
||||||
def category(self):
|
def category(self):
|
||||||
return _('General filters')
|
return _('General filters')
|
||||||
|
@ -412,7 +412,7 @@ class Extract:
|
|||||||
genders - which gender(s) to include into statistics
|
genders - which gender(s) to include into statistics
|
||||||
year_from - use only persons who've born this year of after
|
year_from - use only persons who've born this year of after
|
||||||
year_to - use only persons who've born this year or before
|
year_to - use only persons who've born this year or before
|
||||||
no_years - use also people without any birth year
|
no_years - use also people without known birth year
|
||||||
|
|
||||||
Returns an array of tuple of:
|
Returns an array of tuple of:
|
||||||
- Extraction method title
|
- Extraction method title
|
||||||
@ -774,7 +774,7 @@ class StatisticsChartOptions(ReportOptions.ReportOptions):
|
|||||||
"Earlier than 'year_to' value"),
|
"Earlier than 'year_to' value"),
|
||||||
'year_to' : ("=num", "Birth year until which to include people",
|
'year_to' : ("=num", "Birth year until which to include people",
|
||||||
"Smaller than %d" % self.options_dict['year_to']),
|
"Smaller than %d" % self.options_dict['year_to']),
|
||||||
'no_years' : ("=0/1", "Whether to include people without birth years",
|
'no_years' : ("=0/1", "Whether to include people without known birth years",
|
||||||
["Do not include", "Include"], True),
|
["Do not include", "Include"], True),
|
||||||
'bar_items' : ("=num", "Use barchart instead of piechart with this many or more items",
|
'bar_items' : ("=num", "Use barchart instead of piechart with this many or more items",
|
||||||
"Number of items with which piecharts still look good...")
|
"Number of items with which piecharts still look good...")
|
||||||
@ -878,9 +878,9 @@ class StatisticsChartOptions(ReportOptions.ReportOptions):
|
|||||||
dialog.add_option(_('People born between'), box, tip)
|
dialog.add_option(_('People born between'), box, tip)
|
||||||
box.show_all()
|
box.show_all()
|
||||||
|
|
||||||
# include people without birth year?
|
# include people without known birth year?
|
||||||
tip = _("Check this if you want people who have no birth date or year to be accounted also in the statistics.")
|
tip = _("Check this if you want people who have no known birth date or year to be accounted also in the statistics.")
|
||||||
self.no_years = gtk.CheckButton(_("Include people without birth years"))
|
self.no_years = gtk.CheckButton(_("Include people without known birth years"))
|
||||||
self.no_years.set_active(self.options_dict['no_years'])
|
self.no_years.set_active(self.options_dict['no_years'])
|
||||||
dialog.add_option(None, self.no_years, tip)
|
dialog.add_option(None, self.no_years, tip)
|
||||||
self.no_years.show()
|
self.no_years.show()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user