Changeset 33888 for main


Ignore:
Timestamp:
2020-02-03T13:08:44+13:00 (4 years ago)
Author:
kjdon
Message:

added propertyFile attribute to gsf:interfaceText so that you can request strings from different property file, eg metadata_names.properties

File:
1 edited

Legend:

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

    r33755 r33888  
    520520    <!-- With gsf:interfaceText, a user can request a string from the interface dictionaries in the current lang -->
    521521    <xsl:template match="gsf:interfaceText" name="gsf:interfaceText">
    522         <xslt:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, '{@name}')"/>
    523     </xsl:template>
     522      <xsl:choose>
     523        <xsl:when test="@propertyFile">
     524          <xslt:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, '{@propertyFile}', /page/@lang, '{@name}', '')"/>
     525        </xsl:when>
     526        <xsl:otherwise>
     527          <xslt:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, '{@name}')"/>
     528        </xsl:otherwise>
     529      </xsl:choose>
     530    </xsl:template>
     531   
    524532    <!-- With gsf:collectionText, a user can request a string from the collection's dictionary in the current lang -->
    525533    <xsl:template match="gsf:collectionText1" name="gsf:collectionText1">
Note: See TracChangeset for help on using the changeset viewer.