need context differences for the "To Do" translation string (patch by Harmen Huizinga)

svn: r22069
This commit is contained in:
Jérôme Rapinat 2013-04-22 07:31:46 +00:00
parent 8a4f89f8e3
commit 49c0af18ee
2 changed files with 24 additions and 15 deletions

View File

@ -26,11 +26,11 @@ Note types.
#-------------------------------------------------------------------------
#
# standard python modules
# GRAMPS modules
#
#-------------------------------------------------------------------------
from ..const import GRAMPS_LOCALE as glocale
_ = glocale.translation.gettext
_ = glocale.translation.sgettext
#-------------------------------------------------------------------------
#
@ -86,7 +86,7 @@ class NoteType(GrampsType):
(CITATION, _('Citation'), "Citation"),
(REPORT_TEXT, _("Report"), "Report"),
(HTML_CODE, _("Html code"), "Html code"),
(TODO, _("To Do"), "To Do"),
(TODO, _("notetype|To Do"), "To Do"),
]
_DATAMAPIGNORE = [

View File

@ -23,6 +23,15 @@
# $Id$
#------------------------------------------------------------------------
#
# GRAMPS modules
#
#------------------------------------------------------------------------
from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.translation.sgettext
#------------------------------------------------------------------------
#
# Register Gramplet
@ -258,14 +267,14 @@ register(GRAMPLET,
register(GRAMPLET,
id="To Do",
name=_("To Do"),
name=_("gramplet|To Do"),
description = _("Gramplet for displaying a To Do list"),
status = STABLE,
fname="todogramplet.py",
height=300,
expand=True,
gramplet = 'ToDoGramplet',
gramplet_title=_("To Do"),
gramplet_title=_("gramplet|To Do"),
version="1.0.0",
gramps_target_version="4.1",
)
@ -387,7 +396,7 @@ if available:
name = _("Metadata Viewer"),
description = _("Gramplet showing metadata for a media object"),
version = "1.0.0",
gramps_target_version = "4.1",
gramps_target_version = "4.0",
status = STABLE,
fname = "metadataviewer.py",
height = 200,
@ -1052,7 +1061,7 @@ register(GRAMPLET,
name=_("Records Gramplet"),
description=_("Shows some interesting records about people and families"),
version='1.0',
gramps_target_version='4.1',
gramps_target_version='4.0',
status=STABLE,
fname='recordsgramplet.py',
authors=["Reinhard Müller"],
@ -1073,7 +1082,7 @@ register(GRAMPLET,
fname="todo.py",
height=200,
gramplet = 'PersonToDo',
gramplet_title=_("To Do"),
gramplet_title=_("gramplet|To Do"),
navtypes=["Person"],
)
@ -1087,7 +1096,7 @@ register(GRAMPLET,
fname="todo.py",
height=200,
gramplet = 'EventToDo',
gramplet_title=_("To Do"),
gramplet_title=_("gramplet|To Do"),
navtypes=["Event"],
)
@ -1101,7 +1110,7 @@ register(GRAMPLET,
fname="todo.py",
height=200,
gramplet = 'FamilyToDo',
gramplet_title=_("To Do"),
gramplet_title=_("gramplet|To Do"),
navtypes=["Family"],
)
@ -1115,7 +1124,7 @@ register(GRAMPLET,
fname="todo.py",
height=200,
gramplet = 'PlaceToDo',
gramplet_title=_("To Do"),
gramplet_title=_("gramplet|To Do"),
navtypes=["Place"],
)
@ -1129,7 +1138,7 @@ register(GRAMPLET,
fname="todo.py",
height=200,
gramplet = 'SourceToDo',
gramplet_title=_("To Do"),
gramplet_title=_("gramplet|To Do"),
navtypes=["Source"],
)
@ -1143,7 +1152,7 @@ register(GRAMPLET,
fname="todo.py",
height=200,
gramplet = 'CitationToDo',
gramplet_title=_("To Do"),
gramplet_title=_("gramplet|To Do"),
navtypes=["Citation"],
)
@ -1157,7 +1166,7 @@ register(GRAMPLET,
fname="todo.py",
height=200,
gramplet = 'RepositoryToDo',
gramplet_title=_("To Do"),
gramplet_title=_("gramplet|To Do"),
navtypes=["Repository"],
)
@ -1171,6 +1180,6 @@ register(GRAMPLET,
fname="todo.py",
height=200,
gramplet = 'MediaToDo',
gramplet_title=_("To Do"),
gramplet_title=_("gramplet|To Do"),
navtypes=["Media"],
)