From 49c0af18ee93b3a3f4382314ed1397724e6fd205 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Mon, 22 Apr 2013 07:31:46 +0000 Subject: [PATCH] need context differences for the "To Do" translation string (patch by Harmen Huizinga) svn: r22069 --- gramps/gen/lib/notetype.py | 6 ++--- gramps/plugins/gramplet/gramplet.gpr.py | 33 ++++++++++++++++--------- 2 files changed, 24 insertions(+), 15 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 7080e48ea..5fdcc409b 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.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"], )