fallback locale

git-svn-id: http://yolanda.mister-muffin.de/svn@173 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
josch 2007-11-02 12:39:25 +00:00
parent ba705058f1
commit b8b82f5fe8

View file

@ -20,8 +20,19 @@
<xsl:include href="../xsl/xhtml/results.xsl"/>
<xsl:include href="../xsl/xhtml/video.xsl"/>
<xsl:variable name="locale">
<xsl:choose>
<xsl:when test="//@locale='en-us'">
en-us
</xsl:when>
<xsl:otherwise>
en-us
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="site_strings" select="document('../site/main.xml')//strings/str" />
<xsl:variable name="locale_strings" select="document('../locale/en-us.xml')//strings/str" />
<xsl:variable name="locale_strings" select="document(concat('../locale/', $locale, '.xml'))//strings/str" />
<!-- this kills 99% of the processed XML... sorry Tim Bray.... -->
<xsl:template match="@*|node()">