Mercurial > dive4elements > river
diff flys-artifacts/contrib/fixoverview2html.xsl @ 3432:9c39a25aa849
FixA: Embed german and english translations into the overview stylesheet.
flys-artifacts/trunk@5092 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sat, 21 Jul 2012 12:50:48 +0000 |
parents | 0568ffd29bb2 |
children | c3fb41e73ffb |
line wrap: on
line diff
--- a/flys-artifacts/contrib/fixoverview2html.xsl Sat Jul 21 12:26:12 2012 +0000 +++ b/flys-artifacts/contrib/fixoverview2html.xsl Sat Jul 21 12:50:48 2012 +0000 @@ -16,6 +16,9 @@ <xsl:decimal-format name="de" decimal-separator=',' grouping-separator='.'/> <xsl:decimal-format name="en" decimal-separator='.' grouping-separator=','/> + <!-- XXX: This kind of i18n is cheesy. + It should be better done in an external resource. --> + <xsl:variable name="km-pattern"> <xsl:choose> <xsl:when test="$locale = 'de'">0,##</xsl:when> @@ -23,14 +26,61 @@ </xsl:choose> </xsl:variable> - <xsl:variable name="i18n-event">Ereignis</xsl:variable> - <xsl:variable name="i18n-legend">Legende</xsl:variable> - <xsl:variable name="i18n-color">Farbe</xsl:variable> - <xsl:variable name="i18n-meaning">Bedeutung</xsl:variable> - <xsl:variable name="i18n-around-mnq">um MNQ</xsl:variable> - <xsl:variable name="i18n-around-mq">um MQ</xsl:variable> - <xsl:variable name="i18n-around-mhq">um MHQ</xsl:variable> - <xsl:variable name="i18n-above-hq5">über HQ5</xsl:variable> + <xsl:variable name="i18n-event"> + <xsl:choose> + <xsl:when test="$locale = 'de'">Ereignis</xsl:when> + <xsl:otherwise>Event</xsl:otherwise> + </xsl:choose> + </xsl:variable> + + <xsl:variable name="i18n-legend"> + <xsl:choose> + <xsl:when test="$locale = 'de'">Legende</xsl:when> + <xsl:otherwise>Caption</xsl:otherwise> + </xsl:choose> + </xsl:variable> + + <xsl:variable name="i18n-color"> + <xsl:choose> + <xsl:when test="$locale = 'de'">Farbe</xsl:when> + <xsl:otherwise>Color</xsl:otherwise> + </xsl:choose> + </xsl:variable> + + <xsl:variable name="i18n-meaning"> + <xsl:choose> + <xsl:when test="$locale = 'de'">Bedeutung</xsl:when> + <xsl:otherwise>Meaning</xsl:otherwise> + </xsl:choose> + </xsl:variable> + + <xsl:variable name="i18n-around-mnq"> + <xsl:choose> + <xsl:when test="$locale = 'de'">um MNQ</xsl:when> + <xsl:otherwise>around MNQ</xsl:otherwise> + </xsl:choose> + </xsl:variable> + + <xsl:variable name="i18n-around-mq"> + <xsl:choose> + <xsl:when test="$locale = 'de'">um MQ</xsl:when> + <xsl:otherwise>around MQ</xsl:otherwise> + </xsl:choose> + </xsl:variable> + + <xsl:variable name="i18n-around-mhq"> + <xsl:choose> + <xsl:when test="$locale = 'de'">um MHQ</xsl:when> + <xsl:otherwise>around MHQ</xsl:otherwise> + </xsl:choose> + </xsl:variable> + + <xsl:variable name="i18n-above-hq5"> + <xsl:choose> + <xsl:when test="$locale = 'de'">über HQ5</xsl:when> + <xsl:otherwise>above HQ5</xsl:otherwise> + </xsl:choose> + </xsl:variable> <!-- TODO: Format dates according locale. -->