Fix problem cut off messages. gettext can only handle string constants, not string experssions.

svn: r13786
This commit is contained in:
Peter Landgren 2009-12-13 15:56:35 +00:00
parent 013ef62b6b
commit ee65d7f4b1

View File

@ -214,11 +214,11 @@ class EditPlace(EditPrimary):
def _validate_coordinate(self, widget, text, typedeg):
if (typedeg == 'lat') and not conv_lat_lon(text, "0", "ISO-D"):
return ValidationError(_(u"Invalid latitude (syntax: 18\u00b09'" +
'48.21"S, -18.2412 or -18:9:48.21)'))
return ValidationError(_(u"Invalid latitude (syntax: 18\u00b09'") +
_('48.21"S, -18.2412 or -18:9:48.21)'))
elif (typedeg == 'lon') and not conv_lat_lon("0", text, "ISO-D"):
return ValidationError(_(u"Invalid longitude (syntax: 18\u00b09'" +
'48.21"E, -18.2412 or -18:9:48.21)'))
return ValidationError(_(u"Invalid longitude (syntax: 18\u00b09'") +
_('48.21"E, -18.2412 or -18:9:48.21)'))
def build_menu_names(self, place):
return (_('Edit Place'), self.get_menu_title())