From 5a9cdfaf49ac589b94054ab72a888f1eb9dd795e Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sat, 13 Apr 2002 14:15:32 +0000 Subject: [PATCH] Don't try to translation a null string svn: r921 --- gramps/src/EditPerson.py | 2 ++ gramps/src/intl.c | 2 ++ gramps/src/plugins.glade | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gramps/src/EditPerson.py b/gramps/src/EditPerson.py index b30549ded..aa9dee417 100644 --- a/gramps/src/EditPerson.py +++ b/gramps/src/EditPerson.py @@ -285,7 +285,9 @@ class EditPerson: types = const.NameTypesMap.keys() types.sort() self.ntype_field.set_popdown_strings(types) + print types self.autotype = AutoComp.AutoEntry(self.ntype_field.entry,types) + print self.ntype_field.entry.get_text() self.write_primary_name() if person.getGender() == Person.male: diff --git a/gramps/src/intl.c b/gramps/src/intl.c index 3be725bbd..401e67ff9 100644 --- a/gramps/src/intl.c +++ b/gramps/src/intl.c @@ -20,6 +20,8 @@ PyIntl_gettext(PyObject* self,PyObject *args) if (!PyArg_ParseTuple(args,"z",&in)) return 0; + if (*in == '\0') + return PyString_FromString(""); return PyString_FromString(gettext(in)); } diff --git a/gramps/src/plugins.glade b/gramps/src/plugins.glade index 2a1edc32e..569b4ebed 100644 --- a/gramps/src/plugins.glade +++ b/gramps/src/plugins.glade @@ -143,7 +143,7 @@ GtkLabel CTree:title label63 - + GTK_JUSTIFY_CENTER False 0.5