* src/filters/MatchSndEx2.py: Make consistent use of ...

* src/filters/RegExMatch.py: Likewise.
* src/filters/SubString.py: Likewise.


svn: r2188
This commit is contained in:
Alex Roitman 2003-09-30 04:22:50 +00:00
parent cd028353b3
commit 0fa1c5e4ec
4 changed files with 15 additions and 12 deletions

View File

@ -7,6 +7,9 @@
* src/gramps_main.py: Typo.
* src/PlaceView.py: Likewise.
* src/GenericFilter.py: Likewise.
* src/filters/MatchSndEx2.py: Make consistent use of ...
* src/filters/RegExMatch.py: Likewise.
* src/filters/SubString.py: Likewise.
2003-09-29 Don Allingham <dallingham@users.sourceforge.net>
* src/gramps_main.py: fixed delete person problem.

View File

@ -1,7 +1,7 @@
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000 Donald N. Allingham
# Copyright (C) 2000-2003 Donald N. Allingham
#
# 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
@ -18,14 +18,14 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
"Names with the specified SoundEx code"
"Names with SoundEx code of ..."
import Filter
import soundex
from gettext import gettext as _
class MatchSndEx2(Filter.Filter):
"Names with the specified SoundEx code"
"Names with SoundEx code of ..."
def match(self,person):
return self.text == soundex.soundex(person.getPrimaryName().getSurname())
@ -36,6 +36,6 @@ class MatchSndEx2(Filter.Filter):
#
#------------------------------------------------------------------------
Filter.register_filter(MatchSndEx2,
description=_("Names with the specified SoundEx code"),
description=_("Names with tSoundEx code of ..."),
label=_("SoundEx Code"),
qualifier=1)

View File

@ -1,7 +1,7 @@
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000 Donald N. Allingham
# Copyright (C) 2000-2003 Donald N. Allingham
#
# 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
@ -18,7 +18,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
"Names that match a regular expression"
"Names that match a regular expression of ..."
import Filter
import re
@ -26,7 +26,7 @@ import Utils
from gettext import gettext as _
class RegExMatch(Filter.Filter):
"Names that match a regular expression"
"Names that match a regular expression of ..."
def __init__(self,text):
self.ok = 1
@ -48,7 +48,7 @@ class RegExMatch(Filter.Filter):
#
#------------------------------------------------------------------------
Filter.register_filter(RegExMatch,
description=_("Names that match a regular expression"),
description=_("Names that match a regular expression of ..."),
label=_("Text"),
qualifier=1)

View File

@ -1,7 +1,7 @@
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000 Donald N. Allingham
# Copyright (C) 2000-2003 Donald N. Allingham
#
# 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
@ -18,7 +18,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
"Names that contain a substring"
"Names that contain a substring of ..."
import Filter
import string
@ -26,7 +26,7 @@ import Utils
from gettext import gettext as _
class SubString(Filter.Filter):
"Names that contain a substring"
"Names that contain a substring of ..."
def match(self,person):
s1 = string.lower(Utils.phonebook_name(person))
@ -39,7 +39,7 @@ class SubString(Filter.Filter):
#
#------------------------------------------------------------------------
Filter.register_filter(SubString,
description=_("Names that contain a substring"),
description=_("Names that contain a substring of ..."),
label=_("Text"),
qualifier=1)