Fix problem cut off messages. gettext can only handle string constants, not string experssions.
svn: r13786
This commit is contained in:
parent
013ef62b6b
commit
ee65d7f4b1
@ -214,11 +214,11 @@ class EditPlace(EditPrimary):
|
|||||||
|
|
||||||
def _validate_coordinate(self, widget, text, typedeg):
|
def _validate_coordinate(self, widget, text, typedeg):
|
||||||
if (typedeg == 'lat') and not conv_lat_lon(text, "0", "ISO-D"):
|
if (typedeg == 'lat') and not conv_lat_lon(text, "0", "ISO-D"):
|
||||||
return ValidationError(_(u"Invalid latitude (syntax: 18\u00b09'" +
|
return ValidationError(_(u"Invalid latitude (syntax: 18\u00b09'") +
|
||||||
'48.21"S, -18.2412 or -18:9:48.21)'))
|
_('48.21"S, -18.2412 or -18:9:48.21)'))
|
||||||
elif (typedeg == 'lon') and not conv_lat_lon("0", text, "ISO-D"):
|
elif (typedeg == 'lon') and not conv_lat_lon("0", text, "ISO-D"):
|
||||||
return ValidationError(_(u"Invalid longitude (syntax: 18\u00b09'" +
|
return ValidationError(_(u"Invalid longitude (syntax: 18\u00b09'") +
|
||||||
'48.21"E, -18.2412 or -18:9:48.21)'))
|
_('48.21"E, -18.2412 or -18:9:48.21)'))
|
||||||
|
|
||||||
def build_menu_names(self, place):
|
def build_menu_names(self, place):
|
||||||
return (_('Edit Place'), self.get_menu_title())
|
return (_('Edit Place'), self.get_menu_title())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user