[gimp-help-2/roman_links_to_translations_168256] By default, don't render the language selector.



commit 4779d10ec03f139f9272ad3e668748edf016a10f
Author: Roman Joost <roman bromeco de>
Date:   Tue Oct 16 09:09:56 2012 +1000

    By default, don't render the language selector.
    
    The language selector only makes sense for HTML pages we deliver on a
    server not in the help browser.

 stylesheets/plainhtml.xsl.in |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/stylesheets/plainhtml.xsl.in b/stylesheets/plainhtml.xsl.in
index a6a38a7..fb8030a 100644
--- a/stylesheets/plainhtml.xsl.in
+++ b/stylesheets/plainhtml.xsl.in
@@ -65,6 +65,7 @@
   <xsl:param name="targets.filename" select="'gimp-xrefs.xml'" />
   <xsl:param name="toc.section.depth" select="2" />
   <xsl:param name="use.id.as.filename">1</xsl:param>
+  <xsl:param name="gimp.help.languageselector">0</xsl:param>
   <xsl:param name="gimp.help.all_linguas">@ALL_LINGUAS@</xsl:param>
 
   <!-- Add NotInToc role to simplesect, which is using in fdl.xml to
@@ -176,6 +177,7 @@
         <xsl:if test="$header.rule != 0">
           <hr/>
         </xsl:if>
+        <xsl:if test="$gimp.help.languageselector != 0">
         <div id="show_other_language">
             <xsl:variable name="filename">
                 <xsl:call-template name="href.target" />
@@ -185,6 +187,7 @@
                 <xsl:with-param name="filename" select="$filename" />
             </xsl:call-template>
         </div>
+        </xsl:if>
       </div>
     </xsl:if>
   </xsl:template>



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