From 04cff4335e46f0c2fe7ecb598176723e2bce943e Mon Sep 17 00:00:00 2001 From: Vassilii Khachaturov Date: Thu, 30 Jan 2014 15:40:23 +0200 Subject: [PATCH] l10n: collate _T_ and _ into just _ = sgettext Thanks to Paul Franklin for reviewing [ada8cf] and suggesting this. --- gramps/gui/editors/editplace.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gramps/gui/editors/editplace.py b/gramps/gui/editors/editplace.py index e8999b81d..c198b76b6 100644 --- a/gramps/gui/editors/editplace.py +++ b/gramps/gui/editors/editplace.py @@ -29,8 +29,7 @@ from __future__ import unicode_literals from gramps.gen.const import GRAMPS_LOCALE as glocale -_ = glocale.translation.gettext -_T_ = glocale.translation.sgettext +_ = glocale.translation.sgettext import logging log = logging.getLogger(".") @@ -80,7 +79,7 @@ class EditPlace(EditPrimary): self.top = Glade() self.set_window(self.top.toplevel, None, self.get_menu_title()) self.place_name_label = self.top.get_object('place_name_label') - self.place_name_label.set_text(_T_('place|Name:')) + self.place_name_label.set_text(_('place|Name:')) def get_menu_title(self): if self.obj and self.obj.get_handle():