[gnome-maps] routeEntry: Add tooltips to route location buttons



commit 3baa45e188444c72fcb77e13ec30ec64e719651b
Author: Vibhashu Vaibhav <ayush vibhanshu gmail com>
Date:   Thu Jan 18 21:31:09 2018 +0100

    routeEntry: Add tooltips to route location buttons
    
    https://bugzilla.gnome.org/show_bug.cgi?id=759922

 po/POTFILES.in    |    1 +
 src/routeEntry.js |    7 +++++++
 2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 9d48737..d08fa70 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -49,6 +49,7 @@ src/placeEntry.js
 src/place.js
 src/printLayout.js
 src/printOperation.js
+src/routeEntry.js
 src/sendToDialog.js
 src/shapeLayer.js
 src/sidebar.js
diff --git a/src/routeEntry.js b/src/routeEntry.js
index 812ef37..77f0453 100644
--- a/src/routeEntry.js
+++ b/src/routeEntry.js
@@ -21,6 +21,7 @@ const Gdk = imports.gi.Gdk;
 const GObject = imports.gi.GObject;
 const Gtk = imports.gi.Gtk;
 const Lang = imports.lang;
+const _ = imports.gettext.gettext;
 
 const Application = imports.application;
 const PlaceEntry = imports.placeEntry;
@@ -68,14 +69,20 @@ var RouteEntry = new Lang.Class({
         case Type.FROM:
             this._buttonImage.icon_name = 'list-add-symbolic';
             this._icon.icon_name = 'maps-point-start-symbolic';
+            /* Translators: this is add via location tooltip */
+            this._button.tooltip_text = _("Add via location");
             break;
         case Type.VIA:
             this._buttonImage.icon_name = 'list-remove-symbolic';
             this._icon.icon_name = 'maps-point-end-symbolic';
+            /* Translators: this is remove via location tooltip */
+            this._button.tooltip_text = _("Remove via location");
             break;
         case Type.TO:
             this._buttonImage.icon_name = 'route-reverse-symbolic';
             this._icon.icon_name = 'maps-point-end-symbolic';
+            /* Translators: this is reverse route tooltip */
+            this._button.tooltip_text = _("Reverse route");
             break;
         }
     },


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