From 59ed4f8a8f416e9468ae3dbb6faaa4d250573792 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Mon, 22 Apr 2013 07:28:31 +0000 Subject: [PATCH] need context differences for the "To Do" translation string (patch by Harmen Huizinga) svn: r22068 --- gramps/gen/lib/notetype.py | 6 ++--- gramps/plugins/gramplet/gramplet.gpr.py | 29 ++++++++++++++++--------- 2 files changed, 22 insertions(+), 13 deletions(-) diff --git a/gramps/gen/lib/notetype.py b/gramps/gen/lib/notetype.py index d26b52769..3d65e7bd9 100644 --- a/gramps/gen/lib/notetype.py +++ b/gramps/gen/lib/notetype.py @@ -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 = [ diff --git a/gramps/plugins/gramplet/gramplet.gpr.py b/gramps/plugins/gramplet/gramplet.gpr.py index 93dfb47c3..0440e1da0 100644 --- a/gramps/plugins/gramplet/gramplet.gpr.py +++ b/gramps/plugins/gramplet/gramplet.gpr.py @@ -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.0", ) @@ -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"], )