# HG changeset patch # User paulb # Date 1142618829 0 # Node ID 3726d27b821e2eb45f018dd05016b06c2b8c0ac6 # Parent b9beddebc10e1189ee985b4feb8774ffd0488332 [project @ 2006-03-17 18:07:09 by paulb] Reordered the substitution preferences, making template:i18n more important than template:value. Added expression support to template:i18n annotations, along with a means of controlling the fallback output in cases where no translations are found for a value. diff -r b9beddebc10e -r 3726d27b821e XSLForms/XSL/Prepare.xsl --- a/XSLForms/XSL/Prepare.xsl Fri Mar 17 18:05:21 2006 +0000 +++ b/XSLForms/XSL/Prepare.xsl Fri Mar 17 18:07:09 2006 +0000 @@ -230,14 +230,14 @@ + + + + - - - - @@ -269,6 +269,17 @@ select="$translations/translations/locale[code/@value=$locale]/translation[@value='{text()}']/text()"/> + + + + + + + + $i18n-expr + + @@ -280,6 +291,7 @@ + @@ -287,7 +299,14 @@ - + + + + + + + +