coherency typo wording on filter descriptions
svn: r11229
This commit is contained in:
parent
1ed6d38e1c
commit
df5286233d
@ -35,10 +35,10 @@ from gettext import gettext as _
|
|||||||
from Filters.Rules._HasGalleryBase import HasGalleryBase
|
from Filters.Rules._HasGalleryBase import HasGalleryBase
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
# "Events who have images"
|
# "Events who have media object reference"
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
class HasGallery(HasGalleryBase):
|
class HasGallery(HasGalleryBase):
|
||||||
"""Rule that checks for events who have Media object reference"""
|
"""Rule that checks for event who has media object reference"""
|
||||||
|
|
||||||
name = _('Event with images')
|
name = _('Events with media')
|
||||||
description = _("Matches event with image in the gallery")
|
description = _("Matches events with media object in the gallery")
|
||||||
|
@ -44,8 +44,8 @@ class HasType(Rule):
|
|||||||
"""Rule that checks for an event of a particular type."""
|
"""Rule that checks for an event of a particular type."""
|
||||||
|
|
||||||
labels = [ _('Event type:') ]
|
labels = [ _('Event type:') ]
|
||||||
name = _('Event with the particular type')
|
name = _('Events with the particular type')
|
||||||
description = _("Matches event with the particular type ")
|
description = _("Matches events with the particular type ")
|
||||||
category = _('General filters')
|
category = _('General filters')
|
||||||
|
|
||||||
def apply(self, db, event):
|
def apply(self, db, event):
|
||||||
|
@ -35,10 +35,10 @@ from gettext import gettext as _
|
|||||||
from Filters.Rules._HasGalleryBase import HasGalleryBase
|
from Filters.Rules._HasGalleryBase import HasGalleryBase
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
# "Families who have images"
|
# "Families who have media object reference"
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
class HasGallery(HasGalleryBase):
|
class HasGallery(HasGalleryBase):
|
||||||
"""Rule that checks for families who have Media object reference"""
|
"""Rule that checks for family who has media object reference"""
|
||||||
|
|
||||||
name = _('Family with images')
|
name = _('Families with media')
|
||||||
description = _("Matches family with images in the gallery")
|
description = _("Matches families with media object in the gallery")
|
||||||
|
@ -43,5 +43,5 @@ from Filters.Rules._HasLDSBase import HasLDSBase
|
|||||||
class HasLDS(HasLDSBase):
|
class HasLDS(HasLDSBase):
|
||||||
"""Rule that checks for family with a LDS event"""
|
"""Rule that checks for family with a LDS event"""
|
||||||
|
|
||||||
name = _('Family with LDS event')
|
name = _('Families with LDS event')
|
||||||
description = _("Matches family with LDS event")
|
description = _("Matches families with LDS event")
|
||||||
|
@ -40,6 +40,6 @@ from Filters.Rules._HasReferenceCountBase import HasReferenceCountBase
|
|||||||
class HasReferenceCountOf(HasReferenceCountBase):
|
class HasReferenceCountOf(HasReferenceCountBase):
|
||||||
"""Family objects with a reference count of <count>"""
|
"""Family objects with a reference count of <count>"""
|
||||||
|
|
||||||
name = _('Family objects with a reference count of <count>')
|
name = _('Families with a reference count of <count>')
|
||||||
description = _("Matches family objects with a certain reference count")
|
description = _("Matches families objects with a certain reference count")
|
||||||
|
|
||||||
|
@ -44,8 +44,8 @@ class HasRelType(Rule):
|
|||||||
"""Rule that checks for a person with a particular personal attribute"""
|
"""Rule that checks for a person with a particular personal attribute"""
|
||||||
|
|
||||||
labels = [ _('Relationship type:') ]
|
labels = [ _('Relationship type:') ]
|
||||||
name = _('Family with the relationship type')
|
name = _('Families with the relationship type')
|
||||||
description = _("Matches family with the relationship type "
|
description = _("Matches families with the relationship type "
|
||||||
"of a particular value")
|
"of a particular value")
|
||||||
category = _('General filters')
|
category = _('General filters')
|
||||||
|
|
||||||
|
44
src/Filters/Rules/Person/_HasGallery.py
Normal file
44
src/Filters/Rules/Person/_HasGallery.py
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
#
|
||||||
|
# Gramps - a GTK+/GNOME based genealogy program
|
||||||
|
#
|
||||||
|
# Copyright (C) 2008 Brian G. Matherly
|
||||||
|
#
|
||||||
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
#
|
||||||
|
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------
|
||||||
|
#
|
||||||
|
# Standard Python modules
|
||||||
|
#
|
||||||
|
#-------------------------------------------------------------------------
|
||||||
|
from gettext import gettext as _
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------
|
||||||
|
#
|
||||||
|
# GRAMPS modules
|
||||||
|
#
|
||||||
|
#-------------------------------------------------------------------------
|
||||||
|
from Filters.Rules._HasGalleryBase import HasGalleryBase
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------
|
||||||
|
# "People with media object reference "
|
||||||
|
#-------------------------------------------------------------------------
|
||||||
|
class HavePhotos(HasGalleryBase):
|
||||||
|
"""Rule that checks for person who has media object reference"""
|
||||||
|
|
||||||
|
name = _('People with media')
|
||||||
|
description = _("Matches people with media object in the gallery")
|
@ -42,5 +42,5 @@ from Filters.Rules import HasGrampsId
|
|||||||
class HasIdOf(HasGrampsId):
|
class HasIdOf(HasGrampsId):
|
||||||
"""Rule that checks for a person with a specific GRAMPS ID"""
|
"""Rule that checks for a person with a specific GRAMPS ID"""
|
||||||
|
|
||||||
name = _('People with <Id>')
|
name = _('Person with <Id>')
|
||||||
description = _("Matches people with a specified GRAMPS ID")
|
description = _("Matches person with a specified GRAMPS ID")
|
||||||
|
@ -43,8 +43,8 @@ class MatchIdOf(Rule):
|
|||||||
"""Rule that checks for a person with a specific GRAMPS ID"""
|
"""Rule that checks for a person with a specific GRAMPS ID"""
|
||||||
|
|
||||||
labels = [ _('ID:') ]
|
labels = [ _('ID:') ]
|
||||||
name = _('People with <Id>')
|
name = _('Person with <Id>')
|
||||||
description = _("Matches people with a specified GRAMPS ID")
|
description = _("Matches person with a specified GRAMPS ID")
|
||||||
category = _('General filters')
|
category = _('General filters')
|
||||||
|
|
||||||
def apply(self,db,person):
|
def apply(self,db,person):
|
||||||
|
@ -39,6 +39,7 @@ from _HasDeath import HasDeath
|
|||||||
from _HasEvent import HasEvent
|
from _HasEvent import HasEvent
|
||||||
from _HasFamilyAttribute import HasFamilyAttribute
|
from _HasFamilyAttribute import HasFamilyAttribute
|
||||||
from _HasFamilyEvent import HasFamilyEvent
|
from _HasFamilyEvent import HasFamilyEvent
|
||||||
|
from _HasGallery import HavePhotos
|
||||||
from _HasIdOf import HasIdOf
|
from _HasIdOf import HasIdOf
|
||||||
from _HasLDS import HasLDS
|
from _HasLDS import HasLDS
|
||||||
from _HasNameOf import HasNameOf
|
from _HasNameOf import HasNameOf
|
||||||
@ -53,7 +54,6 @@ from _HasUnknownGender import HasUnknownGender
|
|||||||
from _HasMarkerOf import HasMarkerOf
|
from _HasMarkerOf import HasMarkerOf
|
||||||
from _HaveAltFamilies import HaveAltFamilies
|
from _HaveAltFamilies import HaveAltFamilies
|
||||||
from _HaveChildren import HaveChildren
|
from _HaveChildren import HaveChildren
|
||||||
from _HavePhotos import HavePhotos
|
|
||||||
from _IncompleteNames import IncompleteNames
|
from _IncompleteNames import IncompleteNames
|
||||||
from _IsAncestorOf import IsAncestorOf
|
from _IsAncestorOf import IsAncestorOf
|
||||||
from _IsAncestorOfFilterMatch import IsAncestorOfFilterMatch
|
from _IsAncestorOfFilterMatch import IsAncestorOfFilterMatch
|
||||||
|
@ -35,10 +35,10 @@ from gettext import gettext as _
|
|||||||
from Filters.Rules._HasGalleryBase import HasGalleryBase
|
from Filters.Rules._HasGalleryBase import HasGalleryBase
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
# "Places who have images"
|
# "Places who have media object reference"
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
class HasGallery(HasGalleryBase):
|
class HasGallery(HasGalleryBase):
|
||||||
"""Rule that checks for places who have Media object reference"""
|
"""Rule that checks for place who has media object reference"""
|
||||||
|
|
||||||
name = _('Place with images')
|
name = _('Places with media')
|
||||||
description = _("Matches place with image in the gallery")
|
description = _("Matches places with media object in the gallery")
|
||||||
|
@ -40,6 +40,6 @@ from Filters.Rules._HasReferenceCountBase import HasReferenceCountBase
|
|||||||
class HasReferenceCountOf(HasReferenceCountBase):
|
class HasReferenceCountOf(HasReferenceCountBase):
|
||||||
"""Place objects with a reference count of <count>"""
|
"""Place objects with a reference count of <count>"""
|
||||||
|
|
||||||
name = _('Place objects with a reference count of <count>')
|
name = _('Places with a reference count of <count>')
|
||||||
description = _("Matches place objects with a certain reference count")
|
description = _("Matches places with a certain reference count")
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ from Filters.Rules._HasNoteRegexBase import HasNoteRegexBase
|
|||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
class HasNoteRegexp(HasNoteRegexBase):
|
class HasNoteRegexp(HasNoteRegexBase):
|
||||||
|
|
||||||
name = _('Repositoriess having notes '
|
name = _('Repositories having notes '
|
||||||
'containing <regular expression>')
|
'containing <regular expression>')
|
||||||
description = _("Matches repositories whose notes contain text "
|
description = _("Matches repositories whose notes contain text "
|
||||||
"matching a regular expression")
|
"matching a regular expression")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user