5751: revert 22108, using own filter rule, behavior and label via filtereditor

svn: r22110
This commit is contained in:
Jérôme Rapinat
2013-04-27 17:14:46 +00:00
parent a0cae8afcf
commit 9246af61a3
13 changed files with 20 additions and 20 deletions

View File

@@ -49,7 +49,7 @@ class HasCitation(Rule):
labels = [ _('Volume/Page:'),
_('Date:'),
_('Min. Conf. level:')]
_('Confidence level:')]
name = _('Citations matching parameters')
category = _('General filters')
description = _("Matches citations with particular parameters")

View File

@@ -49,7 +49,7 @@ class HasCitation(HasCitationBase):
labels = [ _('Volume/Page:'),
_('Date:'),
_('Min. Conf. level:')]
_('Confidence level:')]
name = _('Event with the <citation>')
description = _("Matches events with a citation of a particular "
"value")

View File

@@ -43,7 +43,7 @@ from .._matchessourceconfidencebase import MatchesSourceConfidenceBase
class MatchesSourceConfidence(MatchesSourceConfidenceBase):
"""Events matching a specific confidence level on its 'direct' source references"""
labels = [_('Min. Conf. level:')]
labels = [_('Confidence level:')]
name = _('Events with at least one direct source >= <confidence level>')
description = _("Matches events with at least one direct source with confidence level(s)")

View File

@@ -49,7 +49,7 @@ class HasCitation(HasCitationBase):
labels = [ _('Volume/Page:'),
_('Date:'),
_('Min. Conf. level:')]
_('Confidence level:')]
name = _('Family with the <citation>')
description = _("Matches families with a citation of a particular "
"value")

View File

@@ -42,7 +42,7 @@ from .._matchessourceconfidencebase import MatchesSourceConfidenceBase
class MatchesSourceConfidence(MatchesSourceConfidenceBase):
"""Families matching a specific confidence level on its 'direct' source references"""
labels = [_('Min. Conf. level:')]
labels = [_('Confidence level:')]
name = _('Families with at least one direct source >= <confidence level>')
description = _("Matches families with at least one direct source with confidence level(s)")

View File

@@ -48,7 +48,7 @@ class HasCitation(HasCitationBase):
labels = [ _('Volume/Page:'),
_('Date:'),
_('Min. Conf. level:')]
_('Confidence level:')]
name = _('Media with the <citation>')
description = _("Matches media with a citation of a particular "
"value")

View File

@@ -42,6 +42,6 @@ from .._matchessourceconfidencebase import MatchesSourceConfidenceBase
class MatchesSourceConfidence(MatchesSourceConfidenceBase):
"""Media matching a specific confidence level on its 'direct' source references"""
labels = [_('Min. Conf. level:')]
labels = [_('Confidence level:')]
name = _('Media with a direct source >= <confidence level>')
description = _("Matches media with at least one direct source with confidence level(s)")

View File

@@ -48,7 +48,7 @@ class HasCitation(HasCitationBase):
labels = [ _('Volume/Page:'),
_('Date:'),
_('Min. Conf. level:')]
_('Confidence level:')]
name = _('People with the <citation>')
description = _("Matches people with a citation of a particular "
"value")

View File

@@ -42,7 +42,7 @@ from .._matchessourceconfidencebase import MatchesSourceConfidenceBase
class MatchesSourceConfidence(MatchesSourceConfidenceBase):
"""Persons matching a specific confidence level on its 'direct' source references"""
labels = [_('Min. Conf. level:')]
labels = [_('Confidence level:')]
name = _('Persons with at least one direct source >= <confidence level>')
description = _("Matches persons with at least one direct source with confidence level(s)")

View File

@@ -49,7 +49,7 @@ class HasCitation(HasCitationBase):
labels = [ _('Volume/Page:'),
_('Date:'),
_('Min. Conf. level:')]
_('Confidence level:')]
name = _('Place with the <citation>')
description = _("Matches places with a citation of a particular "
"value")

View File

@@ -42,6 +42,6 @@ from .._matchessourceconfidencebase import MatchesSourceConfidenceBase
class MatchesSourceConfidence(MatchesSourceConfidenceBase):
"""Media matching a specific confidence level on its 'direct' source references"""
labels = [_('Min. Conf. level:')]
labels = [_('Confidence level:')]
name = _('Place with a direct source >= <confidence level>')
description = _("Matches places with at least one direct source with confidence level(s)")

View File

@@ -548,7 +548,7 @@ class EditRule(ManagedWindow):
taglist = ['']
taglist = taglist + [tag.get_name() for tag in dbstate.db.iter_tags()]
t = MyList(taglist, taglist)
elif v == _('Min. Conf. level:'):
elif v == _('Confidence level:'):
t = MyList(list(map(str, list(range(5)))),
[confidence[i] for i in range(5)])
else: