tweak "living people" option (change choice strings)
This commit is contained in:
parent
b1617fa51e
commit
674571f3e3
@ -29,7 +29,7 @@ Commonly used report options. Call the function, don't copy the code!
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
from gramps.gen.const import GRAMPS_LOCALE as glocale
|
from gramps.gen.const import GRAMPS_LOCALE as glocale
|
||||||
_ = glocale.translation.gettext
|
_ = glocale.translation.sgettext
|
||||||
from gramps.gen.config import config
|
from gramps.gen.config import config
|
||||||
from gramps.gen.display.name import displayer as global_name_display
|
from gramps.gen.display.name import displayer as global_name_display
|
||||||
from gramps.gen.plug.menu import (EnumeratedListOption, BooleanOption,
|
from gramps.gen.plug.menu import (EnumeratedListOption, BooleanOption,
|
||||||
@ -165,22 +165,19 @@ def add_living_people_option(menu, category,
|
|||||||
years_past_death.set_available(True)
|
years_past_death.set_available(True)
|
||||||
|
|
||||||
living_people = EnumeratedListOption(_("Living People"), mode)
|
living_people = EnumeratedListOption(_("Living People"), mode)
|
||||||
living_people.add_item(LivingProxyDb.MODE_INCLUDE_ALL,
|
items = [(LivingProxyDb.MODE_INCLUDE_ALL,
|
||||||
_T_("Include living people and their data"),
|
_T_("'living people'|Included, and all data"))]
|
||||||
xml_item=True)
|
|
||||||
if process_names:
|
if process_names:
|
||||||
living_people.add_item(LivingProxyDb.MODE_INCLUDE_FULL_NAME_ONLY,
|
items += [
|
||||||
_T_("Include full names but no data"),
|
(LivingProxyDb.MODE_INCLUDE_FULL_NAME_ONLY,
|
||||||
xml_item=True)
|
_T_("'living people'|Full names, but data removed")),
|
||||||
living_people.add_item(LivingProxyDb.MODE_INCLUDE_LAST_NAME_ONLY,
|
(LivingProxyDb.MODE_INCLUDE_LAST_NAME_ONLY,
|
||||||
_T_("Replace given names and include no data"),
|
_T_("'living people'|Given names replaced, and data removed")),
|
||||||
xml_item=True)
|
(LivingProxyDb.MODE_REPLACE_COMPLETE_NAME,
|
||||||
living_people.add_item(LivingProxyDb.MODE_REPLACE_COMPLETE_NAME,
|
_T_("'living people'|Complete names replaced, and data removed"))]
|
||||||
_T_("Replace complete names and include no data"),
|
items += [(LivingProxyDb.MODE_EXCLUDE_ALL,
|
||||||
xml_item=True)
|
_T_("'living people'|Not included"))]
|
||||||
living_people.add_item(LivingProxyDb.MODE_EXCLUDE_ALL,
|
living_people.set_items(items, xml_items=True) # for deferred translation
|
||||||
_T_("Do not include living people"),
|
|
||||||
xml_item=True)
|
|
||||||
living_people.set_help(_("How to handle living people"))
|
living_people.set_help(_("How to handle living people"))
|
||||||
menu.add_option(category, "living_people", living_people)
|
menu.add_option(category, "living_people", living_people)
|
||||||
living_people.connect('value-changed', living_people_changed)
|
living_people.connect('value-changed', living_people_changed)
|
||||||
|
Loading…
Reference in New Issue
Block a user