Adding named variables to format strings for errors in 'make distcheck' to work.
svn: r14470
This commit is contained in:
parent
3ed392bab0
commit
4c9197b403
@ -133,9 +133,9 @@ class EniroSVMapService(MapService):
|
|||||||
if (54.55 < latitude < 69.05) and (8.05 < longitude < 24.15):
|
if (54.55 < latitude < 69.05) and (8.05 < longitude < 24.15):
|
||||||
coord_ok = True
|
coord_ok = True
|
||||||
else:
|
else:
|
||||||
msg2 = _("Latitude not within %s to %s\n") + \
|
msg2 = _("Latitude not within %(lat1)s to %(lat2)s\n") + \
|
||||||
_("Longitude not within %s to %s")
|
_("Longitude not within %(long1)s to %(long2)s")
|
||||||
msg2 = msg2 % (54.55, 69.05, 8.05, 24.15)
|
msg2 = msg2 % {'lat1' : 54.55, 'lat2' : 69.05, 'long1' : 8.05, 'long2' : 24.15 }
|
||||||
WarningDialog(_("Eniro map not available"), msg2 )
|
WarningDialog(_("Eniro map not available"), msg2 )
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user