From aa9f4a9d13aa23cea504389104d70fb83c87280e Mon Sep 17 00:00:00 2001 From: Serge Noiraud Date: Tue, 27 Jan 2009 07:33:40 +0000 Subject: [PATCH] GeoView : change comment when no geolocation. svn: r11742 --- src/DataViews/GeoView.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/DataViews/GeoView.py b/src/DataViews/GeoView.py index 9b03e12ee..054cc6c20 100644 --- a/src/DataViews/GeoView.py +++ b/src/DataViews/GeoView.py @@ -1188,15 +1188,19 @@ class GeoView(HtmlView): # I think we should put here all gramps developpers. # not only me ... # - longitude = -1.568792 - latitude = 47.257971 + #longitude = -1.568792 + #latitude = 47.257971 + longitude = 0.0 + latitude = 0.0 self.mapview.write("\nvar point = new LatLonPoint(%s,%s);\n"%(latitude,longitude)) self.mapview.write(" mapstraction.setCenterAndZoom(point, %d);\n"%2) self.mapview.write(" my_marker = new Marker(point);\n") - self.mapview.write(" my_marker.setLabel(\"%s\");\n"%_("The author of this module.")) + self.mapview.write(" my_marker.setLabel(\"%s\");\n"%_("No location.")) self.mapview.write(" my_marker.setInfoBubble(\"
") - self.mapview.write("Serge Noiraud
Nantes, France
") - self.mapview.write("%s
\");\n"%_("This request has no geolocation associated.")) + self.mapview.write(_("You have no place in your database with coordinates.")) + self.mapview.write("
") + self.mapview.write(_("This is why you see this map.")) + self.mapview.write("\");\n") self.mapview.write(" mapstraction.addMarker(my_marker);") self.setattr = False self.mapview.write("\n \n")