l10n: collate _T_ and _ into just _ = sgettext

Thanks to Paul Franklin for reviewing [ada8cf] and suggesting this.
This commit is contained in:
Vassilii Khachaturov 2014-01-30 15:40:23 +02:00
parent c8e885b7dd
commit 04cff4335e

View File

@ -29,8 +29,7 @@
from __future__ import unicode_literals from __future__ import unicode_literals
from gramps.gen.const import GRAMPS_LOCALE as glocale from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.translation.gettext _ = glocale.translation.sgettext
_T_ = glocale.translation.sgettext
import logging import logging
log = logging.getLogger(".") log = logging.getLogger(".")
@ -80,7 +79,7 @@ class EditPlace(EditPrimary):
self.top = Glade() self.top = Glade()
self.set_window(self.top.toplevel, None, self.get_menu_title()) 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 = 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): def get_menu_title(self):
if self.obj and self.obj.get_handle(): if self.obj and self.obj.get_handle():