Divadsn has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/332041 )

Change subject: Add explanatory tooltips for GraphResultBrowser display icons
......................................................................

Add explanatory tooltips for GraphResultBrowser display icons

Following new i18n messages has been added:
* wdqs-app-resultbrowser-stabilize
* wdqs-app-resultbrowser-hierarchical-lr
* wdqs-app-resultbrowser-hierarchical-ud
* wdqs-app-resultbrowser-hierarchical-rl

Change-Id: I80493f707461c73418b7440dc904505c19910b81
---
M i18n/en.json
M i18n/qqq.json
M wikibase/queryService/ui/resultBrowser/GraphResultBrowser.js
3 files changed, 25 insertions(+), 8 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikidata/query/gui 
refs/changes/41/332041/1

diff --git a/i18n/en.json b/i18n/en.json
index f989c61..d1676c2 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -40,6 +40,10 @@
     "wdqs-app-shorturl-page-title": "Short URL to this page",
     "wdqs-app-editor-placeholder": "(Input a SPARQL query or choose a query 
example)",
     "wdqs-app-editor-addprefixes": "Add Standard Prefixes",
+    "wdqs-app-resultbrowser-stabilize": "Stabilize network",
+    "wdqs-app-resultbrowser-hierarchical-lr": "Hierarchical Layout left to 
right",
+    "wdqs-app-resultbrowser-hierarchical-ud": "Hierarchical Layout up to down",
+    "wdqs-app-resultbrowser-hierarchical-rl": "Hierarchical Layout right to 
left",
     "wdqs-dialog-examples-preview-query": "Preview query",
     "wdqs-dialog-examples-preview-result": "Preview result",
     "wdqs-ve-find": "Find",
diff --git a/i18n/qqq.json b/i18n/qqq.json
index 793f3f1..b7d21e6 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -42,6 +42,10 @@
        "wdqs-app-shorturl-page-title": "Title of link message on the left side 
of the editor",
        "wdqs-app-editor-placeholder": "Placeholder message in editor box",
        "wdqs-app-editor-addprefixes": "Butten message in the prefix menu",
+       "wdqs-app-resultbrowser-stabilize": "Button message in graph browser 
toolbar",
+       "wdqs-app-resultbrowser-hierarchical-lr": "Button message in graph 
browser toolbar",
+       "wdqs-app-resultbrowser-hierarchical-ud": "Button message in graph 
browser toolbar",
+       "wdqs-app-resultbrowser-hierarchical-rl": "Button message in graph 
browser toolbar",
        "wdqs-dialog-examples-preview-query": "Label to preview query in 
example dialog",
        "wdqs-dialog-examples-preview-result": "Label to preview result in 
example dialog",
        "wdqs-ve-find": "Label to find some item\n{{Identical|Find}}",
diff --git a/wikibase/queryService/ui/resultBrowser/GraphResultBrowser.js 
b/wikibase/queryService/ui/resultBrowser/GraphResultBrowser.js
index 94b6628..f9c6a17 100644
--- a/wikibase/queryService/ui/resultBrowser/GraphResultBrowser.js
+++ b/wikibase/queryService/ui/resultBrowser/GraphResultBrowser.js
@@ -87,23 +87,32 @@
 
                $( '<a class="btn btn-default">' ).click( function() {
                        network.stabilize( 100 );
-               } ).append( '<span class="glyphicon glyphicon-fullscreen" 
aria-hidden="true"></span>' )
-                               .appendTo( $toolbar );
+               } ).append(
+                       '<span class="glyphicon glyphicon-fullscreen" 
aria-hidden="true" title="' +
+                       this._i18n("wdqs-app-resultbrowser-stabilize") +
+                       '"></span>'
+               ).appendTo( $toolbar );
 
                $( '<a class="btn btn-default">' ).click( function() {
                        setLayout( 'LR' );
-               } ).append( '<span class="glyphicon glyphicon-indent-left" 
aria-hidden="true"></span>' )
-                               .appendTo( $toolbar );
+               } ).append( '<span class="glyphicon glyphicon-indent-left" 
aria-hidden="true" title="' +
+                       this._i18n("wdqs-app-resultbrowser-hierarchical-lr") +
+                       '"></span>'
+               ).appendTo( $toolbar );
 
                $( '<a class="btn btn-default">' ).click( function() {
                        setLayout( 'UD' );
-               } ).append( '<span class="glyphicon glyphicon-align-center" 
aria-hidden="true"></span>' )
-                               .appendTo( $toolbar );
+               } ).append( '<span class="glyphicon glyphicon-align-center" 
aria-hidden="true" title="' +
+                       this._i18n("wdqs-app-resultbrowser-hierarchical-ud") +
+                       '"></span>'
+               ).appendTo( $toolbar );
 
                $( '<a class="btn btn-default">' ).click( function() {
                        setLayout( 'RL' );
-               } ).append( '<span class="glyphicon glyphicon-indent-right" 
aria-hidden="true"></span>' )
-                               .appendTo( $toolbar );
+               } ).append( '<span class="glyphicon glyphicon-indent-right" 
aria-hidden="true" title="' +
+                       this._i18n("wdqs-app-resultbrowser-hierarchical-rl") +
+                       '"></span>'
+               ).appendTo( $toolbar );
 
                return $toolbar;
        };

-- 
To view, visit https://gerrit.wikimedia.org/r/332041
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I80493f707461c73418b7440dc904505c19910b81
Gerrit-PatchSet: 1
Gerrit-Project: wikidata/query/gui
Gerrit-Branch: master
Gerrit-Owner: Divadsn <divad.nnamtd...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to