2012-06-25 00:44:25 +05:30
|
|
|
#
|
|
|
|
# Gramps - a GTK+/GNOME based genealogy program
|
|
|
|
#
|
|
|
|
# Copyright (C) 2000-2007 Donald N. Allingham
|
|
|
|
# Copyright (C) 2009 Gary Burton
|
|
|
|
# Copyright (C) 2011 Tim G L Lyons
|
|
|
|
#
|
|
|
|
# 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$
|
|
|
|
|
|
|
|
"""
|
|
|
|
String mappings for constants
|
|
|
|
"""
|
|
|
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Gramps modules
|
|
|
|
#
|
|
|
|
#-------------------------------------------------------------------------
|
2012-10-02 02:23:08 +05:30
|
|
|
from ..lib import Person, Citation, FamilyRelType
|
2013-01-18 01:16:55 +05:30
|
|
|
from ..const import GRAMPS_LOCALE as glocale
|
2013-04-13 04:02:11 +05:30
|
|
|
_ = glocale.translation.sgettext
|
2012-06-25 00:44:25 +05:30
|
|
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Integer to String mappings for constants
|
|
|
|
#
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
gender = {
|
2012-10-02 02:23:08 +05:30
|
|
|
Person.MALE : _("male"),
|
|
|
|
Person.FEMALE : _("female"),
|
|
|
|
Person.UNKNOWN : _("gender|unknown"),
|
2012-06-25 00:44:25 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
def format_gender( type):
|
|
|
|
return gender.get(type[0], _("Invalid"))
|
|
|
|
|
|
|
|
confidence = {
|
2012-10-02 02:23:08 +05:30
|
|
|
Citation.CONF_VERY_HIGH : _("Very High"),
|
|
|
|
Citation.CONF_HIGH : _("High"),
|
|
|
|
Citation.CONF_NORMAL : _("Normal"),
|
|
|
|
Citation.CONF_LOW : _("Low"),
|
|
|
|
Citation.CONF_VERY_LOW : _("Very Low"),
|
2012-06-25 00:44:25 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
family_rel_descriptions = {
|
2012-10-02 02:23:08 +05:30
|
|
|
FamilyRelType.MARRIED : _("A legal or common-law relationship "
|
2012-06-25 00:44:25 +05:30
|
|
|
"between a husband and wife"),
|
2012-10-02 02:23:08 +05:30
|
|
|
FamilyRelType.UNMARRIED : _("No legal or common-law relationship "
|
2012-06-25 00:44:25 +05:30
|
|
|
"between man and woman"),
|
2012-10-02 02:23:08 +05:30
|
|
|
FamilyRelType.CIVIL_UNION : _("An established relationship between "
|
2012-06-25 00:44:25 +05:30
|
|
|
"members of the same sex"),
|
2012-10-02 02:23:08 +05:30
|
|
|
FamilyRelType.UNKNOWN : _("Unknown relationship between a man "
|
2012-06-25 00:44:25 +05:30
|
|
|
"and woman"),
|
2012-10-02 02:23:08 +05:30
|
|
|
FamilyRelType.CUSTOM : _("An unspecified relationship between "
|
2012-06-25 00:44:25 +05:30
|
|
|
"a man and woman"),
|
|
|
|
}
|
|
|
|
|
|
|
|
data_recover_msg = _('The data can only be recovered by Undo operation '
|
|
|
|
'or by quitting with abandoning changes.')
|