[Libreoffice-commits] help.git: help3xsl/online_transform.xsl

Olivier Hallot olivier.hallot at libreoffice.org
Sun May 6 12:24:07 UTC 2018


 help3xsl/online_transform.xsl |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 577f7d2ba8639e17fbb1f7238121de453bba9f8e
Author: Olivier Hallot <olivier.hallot at libreoffice.org>
Date:   Sun May 6 09:19:59 2018 -0300

    Fix icon path for colibre + screenshot lang
    
    Note, Tip and Warning icon path
    Fix screenshot lang path for en-US
    
    Change-Id: Ia8a7c5d396ea4e3d6858ebcde6019d71c43278b0
    Reviewed-on: https://gerrit.libreoffice.org/53910
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Olivier Hallot <olivier.hallot at libreoffice.org>

diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl
index 1f18a4963..67b1e2a7c 100644
--- a/help3xsl/online_transform.xsl
+++ b/help3xsl/online_transform.xsl
@@ -100,9 +100,9 @@
 <xsl:variable name="linkpostfix" select="''"/>
 
 <!-- images for notes, tips and warnings -->
-<xsl:variable name="note_img" select="concat($img_url_prefix,'helpimg/note.png')"/>
-<xsl:variable name="tip_img" select="concat($img_url_prefix,'helpimg/tip.png')"/>
-<xsl:variable name="warning_img" select="concat($img_url_prefix,'helpimg/warning.png')"/>
+<xsl:variable name="note_img" select="concat($img_url_prefix,'icon-themes/help/note.png')"/>
+<xsl:variable name="tip_img" select="concat($img_url_prefix,'icon-themes/help/tip.png')"/>
+<xsl:variable name="warning_img" select="concat($img_url_prefix,'icon-themes/help/warning.png')"/>
 
 <!--
 #############
@@ -1105,8 +1105,8 @@
     <xsl:choose>
          <xsl:when test="starts-with(@src,'media/screenshots/')">
             <xsl:choose>
-                <xsl:when test="@localize='true'">
-                    <xsl:variable name="tmp0" select="substring-before(@src, '/ui')"/>
+                <xsl:when test="@localize='true' and not($lang='en-US')">
+                    <xsl:variable name="tmp0" select="substring-before(@src, '/ui/')"/>
                     <xsl:variable name="tmp1" select="substring-after(@src, '/ui/')"/>
                     <xsl:variable name="tmp2" select="substring-before($tmp1,'/')"/>
                     <xsl:variable name="tmp3" select="substring-after($tmp1,'/')"/>


More information about the Libreoffice-commits mailing list