l10n: collate _T_ and _ into just _ = sgettext
Thanks to Paul Franklin for reviewing [ada8cf] and suggesting this.
This commit is contained in:
parent
c8e885b7dd
commit
04cff4335e
@ -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():
|
||||||
|
Loading…
Reference in New Issue
Block a user