Don't try to translation a null string
svn: r921
This commit is contained in:
parent
7b17cc9209
commit
5a9cdfaf49
@ -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:
|
||||
|
@ -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));
|
||||
}
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user