changeset 193:96f5cdc71af5

Add translatable titles to navigation button elements.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 19 Mar 2018 13:14:40 +0200
parents 90eca8da0da9
children 3562c43727e5
files mgallery.php
diffstat 1 files changed, 13 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mgallery.php	Mon Mar 19 13:11:41 2018 +0200
+++ b/mgallery.php	Mon Mar 19 13:14:40 2018 +0200
@@ -41,6 +41,16 @@
     "fi" => "albumia",
     "en" => "albums",
   ],
+
+  "page_info_button_title" => [
+    "fi" => "Näytä gallerian navigointi.",
+    "en" => "Show gallery navigation.",
+  ],
+
+  "page_up_navi_button_title" => [
+    "fi" => "Mene takaisin galleriasivulle.",
+    "en" => "Go back to gallery page.",
+  ],
 ];
 
 
@@ -570,11 +580,12 @@
     mgPrintBreadCrumbs($galData);
 
   echo
-    "<div id=\"pageInfoButton\">_</div>\n".
-    "<a id=\"pageUpNaviButton\" href=\"".mgGetURL($galData["path"], FALSE)."\">^</a>\n".
     mgGetPageInfoHeaderEnd().
     "\n".
     // Hovering navigation buttons
+    "<a id=\"pageInfoButton\" href=\"#\" title=\"".mgQM("page_info_button_title")."\">_</a>\n".
+    "<a id=\"pageUpNaviButton\" href=\"".mgGetURL($galData["path"], FALSE)."\" title=\"".mgQM("page_up_navi_button_title")."\">^</a>\n".
+    // imageCBox
     "<div id=\"imageCBox\">\n".
       mgGetNaviControlImageBoxJS($galImagesIndex, $index, "prevBtm", -1)."\n".
       mgGetNaviControlImageBox($galImagesIndex, $index, "prev", -1)."\n".