1.1 --- a/XSLForms/XSL/FindTranslationKeys.xsl Mon Jun 22 23:33:43 2009 +0200
1.2 +++ b/XSLForms/XSL/FindTranslationKeys.xsl Mon Jun 22 23:59:53 2009 +0200
1.3 @@ -48,6 +48,19 @@
1.4 <translation value="{@template:i18n}"></translation>
1.5 </xsl:otherwise>
1.6 </xsl:choose>
1.7 + <xsl:apply-templates select="@*|node()"/>
1.8 + </xsl:template>
1.9 +
1.10 +
1.11 +
1.12 + <!-- Handle attributes containing translation functions. -->
1.13 +
1.14 + <xsl:template match="@*[contains(string(), 'template:i18n')]">
1.15 + <xsl:variable name="after-parameter">template:i18n('</xsl:variable>
1.16 + <xsl:variable name="before-parameter">')</xsl:variable>
1.17 + <xsl:variable name="after" select="substring-after(string(), $after-parameter)"/>
1.18 + <xsl:variable name="fragment" select="substring-before($after, $before-parameter)"/>
1.19 + <translation value="{$fragment}"></translation>
1.20 </xsl:template>
1.21
1.22