]> granicus.if.org Git - docbook-dsssl/commitdiff
Add a tooltip to the H (toggle search result highlighting) button
authorDavid Cramer <david@thingbag.net>
Mon, 16 Aug 2010 16:12:24 +0000 (16:12 +0000)
committerDavid Cramer <david@thingbag.net>
Mon, 16 Aug 2010 16:12:24 +0000 (16:12 +0000)
xsl/webhelp/xsl/webhelp.xsl

index 7b2077145c14dfb23f3f78df9ef05324e399197f..70a361a624db26be05bc38b1bf26b1b3bb838daf 100755 (executable)
@@ -49,6 +49,7 @@
             <l:gentext key="txt_please_wait" text="Please wait. Search in progress..."/>
             <l:gentext key="txt_results_for" text="Results for: "/>
             <l:gentext key="TableofContents" text="Contents"/>
+               <l:gentext key="HighlightButton" text="Toggle search result highlighting"/>
         </l10n>
        <!-- The fallback mechansim doesn't seem to work for local l10n stuff -->
         <l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="ja">
@@ -62,6 +63,7 @@
                        text="Your browser is not supported. Use of Mozilla Firefox is recommended."/>
             <l:gentext key="txt_please_wait" text="Please wait. Search in progress..."/>
             <l:gentext key="txt_results_for" text="Results for: "/>
+               <l:gentext key="HighlightButton" text="Toggle search result highlighting"/>
         </l10n>
         <l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="de">
             <l:gentext key="Search" text="Search"/>
@@ -74,6 +76,7 @@
                        text="Your browser is not supported. Use of Mozilla Firefox is recommended."/>
             <l:gentext key="txt_please_wait" text="Please wait. Search in progress..."/>
             <l:gentext key="txt_results_for" text="Results for: "/>
+               <l:gentext key="HighlightButton" text="Toggle search result highlighting"/>
         </l10n>
         <l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="fr">
             <l:gentext key="Search" text="Search"/>
@@ -86,6 +89,7 @@
                        text="Your browser is not supported. Use of Mozilla Firefox is recommended."/>
             <l:gentext key="txt_please_wait" text="Please wait. Search in progress..."/>
             <l:gentext key="txt_results_for" text="Results for: "/>
+               <l:gentext key="HighlightButton" text="Toggle search result highlighting"/>
         </l10n>
         <l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="zh">
             <l:gentext key="Search" text="Search"/>
                        text="Your browser is not supported. Use of Mozilla Firefox is recommended."/>
             <l:gentext key="txt_please_wait" text="Please wait. Search in progress..."/>
             <l:gentext key="txt_results_for" text="Results for: "/>
+               <l:gentext key="HighlightButton" text="Toggle search result highlighting"/>
         </l10n>
 
     </i18n>
@@ -443,7 +448,13 @@ These problems go away when you add this IE=7 mode meta tag.
                         </td>
                         <td>
                             <img src="../common/images/highlight-blue.gif" alt="H" height="25px"
-                                 onclick="toggleHighlight()" id="showHideHighlight" style="cursor:pointer"/>
+                                 onclick="toggleHighlight()" id="showHideHighlight" style="cursor:pointer">
+                               <xsl:attribute name="title">
+                                 <xsl:call-template name="gentext">
+                                       <xsl:with-param name="key" select="'HighlightButton'"/>
+                                 </xsl:call-template>                            
+                               </xsl:attribute>
+                         </img>
                         </td>
                         <xsl:if test="count($prev) &gt; 0
                                         or (count($up) &gt; 0