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