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

svn: r22068
This commit is contained in:
Jérôme Rapinat 2013-04-22 07:28:31 +00:00
parent 07db07eb87
commit 59ed4f8a8f
2 changed files with 22 additions and 13 deletions

View File

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

View File

@ -23,6 +23,15 @@
# $Id$ # $Id$
#------------------------------------------------------------------------
#
# GRAMPS modules
#
#------------------------------------------------------------------------
from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.translation.sgettext
#------------------------------------------------------------------------ #------------------------------------------------------------------------
# #
# Register Gramplet # Register Gramplet
@ -258,14 +267,14 @@ register(GRAMPLET,
register(GRAMPLET, register(GRAMPLET,
id="To Do", id="To Do",
name=_("To Do"), name=_("gramplet|To Do"),
description = _("Gramplet for displaying a To Do list"), description = _("Gramplet for displaying a To Do list"),
status = STABLE, status = STABLE,
fname="todogramplet.py", fname="todogramplet.py",
height=300, height=300,
expand=True, expand=True,
gramplet = 'ToDoGramplet', gramplet = 'ToDoGramplet',
gramplet_title=_("To Do"), gramplet_title=_("gramplet|To Do"),
version="1.0.0", version="1.0.0",
gramps_target_version="4.0", gramps_target_version="4.0",
) )
@ -1073,7 +1082,7 @@ register(GRAMPLET,
fname="todo.py", fname="todo.py",
height=200, height=200,
gramplet = 'PersonToDo', gramplet = 'PersonToDo',
gramplet_title=_("To Do"), gramplet_title=_("gramplet|To Do"),
navtypes=["Person"], navtypes=["Person"],
) )
@ -1087,7 +1096,7 @@ register(GRAMPLET,
fname="todo.py", fname="todo.py",
height=200, height=200,
gramplet = 'EventToDo', gramplet = 'EventToDo',
gramplet_title=_("To Do"), gramplet_title=_("gramplet|To Do"),
navtypes=["Event"], navtypes=["Event"],
) )
@ -1101,7 +1110,7 @@ register(GRAMPLET,
fname="todo.py", fname="todo.py",
height=200, height=200,
gramplet = 'FamilyToDo', gramplet = 'FamilyToDo',
gramplet_title=_("To Do"), gramplet_title=_("gramplet|To Do"),
navtypes=["Family"], navtypes=["Family"],
) )
@ -1115,7 +1124,7 @@ register(GRAMPLET,
fname="todo.py", fname="todo.py",
height=200, height=200,
gramplet = 'PlaceToDo', gramplet = 'PlaceToDo',
gramplet_title=_("To Do"), gramplet_title=_("gramplet|To Do"),
navtypes=["Place"], navtypes=["Place"],
) )
@ -1129,7 +1138,7 @@ register(GRAMPLET,
fname="todo.py", fname="todo.py",
height=200, height=200,
gramplet = 'SourceToDo', gramplet = 'SourceToDo',
gramplet_title=_("To Do"), gramplet_title=_("gramplet|To Do"),
navtypes=["Source"], navtypes=["Source"],
) )
@ -1143,7 +1152,7 @@ register(GRAMPLET,
fname="todo.py", fname="todo.py",
height=200, height=200,
gramplet = 'CitationToDo', gramplet = 'CitationToDo',
gramplet_title=_("To Do"), gramplet_title=_("gramplet|To Do"),
navtypes=["Citation"], navtypes=["Citation"],
) )
@ -1157,7 +1166,7 @@ register(GRAMPLET,
fname="todo.py", fname="todo.py",
height=200, height=200,
gramplet = 'RepositoryToDo', gramplet = 'RepositoryToDo',
gramplet_title=_("To Do"), gramplet_title=_("gramplet|To Do"),
navtypes=["Repository"], navtypes=["Repository"],
) )
@ -1171,6 +1180,6 @@ register(GRAMPLET,
fname="todo.py", fname="todo.py",
height=200, height=200,
gramplet = 'MediaToDo', gramplet = 'MediaToDo',
gramplet_title=_("To Do"), gramplet_title=_("gramplet|To Do"),
navtypes=["Media"], navtypes=["Media"],
) )