Changeset 34883


Ignore:
Timestamp:
2021-02-16T14:02:10+13:00 (3 years ago)
Author:
kjdon
Message:

I don't quite understand expand gsf relation to expand gsf pass1. Anyway, I want to do gsf:interfaceText with propertyFile attribute in document.xsl, and this seems to be getting resolved by the pass1 file, so need to add in hte handling for propertyFile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/expand-gsf-pass1.xsl

    r33755 r34883  
    1919    <!-- With gsf:interfaceText, a user can request a string from the interface dictionaries in the current lang -->
    2020    <xsl:template match="gsf:interfaceText" name="gsf:interfaceText">
    21         <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, $lang, @name)"/>
     21      <xsl:choose>
     22        <xsl:when test="@propertyFile">
     23          <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, @propertyFile, $lang, @name, '')"/>
     24        </xsl:when>
     25        <xsl:otherwise>
     26          <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, $lang, @name)"/>
     27        </xsl:otherwise>
     28      </xsl:choose>
    2229    </xsl:template>
    2330
Note: See TracChangeset for help on using the changeset viewer.