bruno 2004/04/22 07:16:31
Modified: src/blocks/forms/samples/resources
forms-htmlarea-styling.xsl
Log:
Allow to set HTML Area language using a stylesheet parameter.
Revision Changes Path
1.4 +2 -1
cocoon-2.1/src/blocks/forms/samples/resources/forms-htmlarea-styling.xsl
Index: forms-htmlarea-styling.xsl
===================================================================
RCS file:
/home/cvs/cocoon-2.1/src/blocks/forms/samples/resources/forms-htmlarea-styling.xsl,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- forms-htmlarea-styling.xsl 15 Apr 2004 18:10:49 -0000 1.3
+++ forms-htmlarea-styling.xsl 22 Apr 2004 14:16:31 -0000 1.4
@@ -24,11 +24,12 @@
<!-- Location of the resources directory, where JS libs and icons are
stored -->
<xsl:param name="resources-uri">resources</xsl:param>
+ <xsl:param name="htmlarea-lang">en</xsl:param>
<xsl:template match="head" mode="forms-htmlarea">
<script type="text/javascript">
_editor_url = "<xsl:value-of select="concat($resources-uri,
'/htmlarea/')"/>";
- _editor_lang = "en";
+ _editor_lang = "<xsl:value-of select="$htmlarea-lang"/>";
</script>
<script type="text/javascript"
src="{$resources-uri}/htmlarea/htmlarea.js"></script>
</xsl:template>