From 06c0aa4d54f2dcc49ef93761aa0ceb7895e303c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Wed, 18 Apr 2012 17:27:47 +0000 Subject: [PATCH] translation issues (patch by MathieuMD), see devel mailing list svn: r19352 --- po/POTFILES.in | 5 ++++- src/Filters/Rules/_IsPrivate.py | 7 ++++++- src/gen/db/upgrade.py | 2 ++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/po/POTFILES.in b/po/POTFILES.in index aaa9e8280..23d5c5fc8 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -35,6 +35,7 @@ src/cli/plug/__init__.py src/gen/db/base.py src/gen/db/exceptions.py src/gen/db/undoredo.py +src/gen/db/upgrade.py # gen display API src/gen/display/name.py @@ -323,8 +324,9 @@ src/plugins/lib/libplugins.gpr.py src/plugins/lib/libtranslate.py src/plugins/lib/libtreebase.py src/plugins/lib/holidays.xml.in -src/plugins/lib/maps/constants.py src/plugins/lib/maps/geography.py +src/plugins/lib/maps/osmGps.py +src/plugins/lib/maps/placeselection.py # plugins/mapservices directory src/plugins/mapservices/eniroswedenmap.py @@ -407,6 +409,7 @@ src/plugins/view/eventview.py src/plugins/view/familyview.py src/plugins/view/fanchartview.py src/plugins/view/geography.gpr.py +src/plugins/view/geoclose.py src/plugins/view/geoevents.py src/plugins/view/geofamily.py src/plugins/view/geoperson.py diff --git a/src/Filters/Rules/_IsPrivate.py b/src/Filters/Rules/_IsPrivate.py index 846b20034..a814b841b 100644 --- a/src/Filters/Rules/_IsPrivate.py +++ b/src/Filters/Rules/_IsPrivate.py @@ -20,6 +20,11 @@ # $Id$ +# Standard Python modules +# +#------------------------------------------------------------------------- +from gen.ggettext import gettext as _ + #------------------------------------------------------------------------- # # GRAMPS modules @@ -35,7 +40,7 @@ class IsPrivate(Rule): name = 'Objects marked private' description = "Matches objects that are indicated as private" - category = 'General filters' + category = _('General filters') def apply(self, db, obj): return obj.get_privacy() diff --git a/src/gen/db/upgrade.py b/src/gen/db/upgrade.py index c326c0bb7..2047a7643 100644 --- a/src/gen/db/upgrade.py +++ b/src/gen/db/upgrade.py @@ -29,6 +29,8 @@ import time import logging LOG = logging.getLogger(".citation") +from gen.ggettext import gettext as _ + """ methods to upgrade a database from version 13 to current version """