[gnome-maps] geoclue: Set place name to _("Current location")



commit d8f092c876a0869d417bde896cb034191cc6dddf
Author: Jonas Danielsson <jonas danielsson threetimestwo org>
Date:   Thu Oct 30 07:17:47 2014 -0400

    geoclue: Set place name to _("Current location")

 src/geoclue.js |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/geoclue.js b/src/geoclue.js
index bd4816a..d0adcca 100644
--- a/src/geoclue.js
+++ b/src/geoclue.js
@@ -28,6 +28,8 @@ const Lang = imports.lang;
 const Application = imports.application;
 const Utils = imports.utils;
 
+const _ = imports.gettext.gettext;
+
 const ManagerInterface = '<node> \
 <interface name="org.freedesktop.GeoClue2.Manager"> \
     <method name="GetClient"> \
@@ -131,7 +133,8 @@ const Geoclue = new Lang.Class({
                                                   longitude: lng,
                                                   accuracy: accuracy });
 
-            this.place = new Geocode.Place({ location: location });
+            this.place = new Geocode.Place({ location: location,
+                                             name: _("Current location") });
 
             this.userSetLocation = Application.settings.get('last-location-user-set');
         }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]