Don't try to translation a null string

svn: r921
This commit is contained in:
Don Allingham 2002-04-13 14:15:32 +00:00
parent 7b17cc9209
commit 5a9cdfaf49
3 changed files with 5 additions and 1 deletions

View File

@ -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:

View File

@ -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));
}

View File

@ -143,7 +143,7 @@
<class>GtkLabel</class>
<child_name>CTree:title</child_name>
<name>label63</name>
<label>label63</label>
<label></label>
<justify>GTK_JUSTIFY_CENTER</justify>
<wrap>False</wrap>
<xalign>0.5</xalign>