comparison 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
comparison
equal deleted inserted replaced
3431:0568ffd29bb2 3432:9c39a25aa849
14 <xsl:param name="locale">de</xsl:param> 14 <xsl:param name="locale">de</xsl:param>
15 15
16 <xsl:decimal-format name="de" decimal-separator=',' grouping-separator='.'/> 16 <xsl:decimal-format name="de" decimal-separator=',' grouping-separator='.'/>
17 <xsl:decimal-format name="en" decimal-separator='.' grouping-separator=','/> 17 <xsl:decimal-format name="en" decimal-separator='.' grouping-separator=','/>
18 18
19 <!-- XXX: This kind of i18n is cheesy.
20 It should be better done in an external resource. -->
21
19 <xsl:variable name="km-pattern"> 22 <xsl:variable name="km-pattern">
20 <xsl:choose> 23 <xsl:choose>
21 <xsl:when test="$locale = 'de'">0,##</xsl:when> 24 <xsl:when test="$locale = 'de'">0,##</xsl:when>
22 <xsl:otherwise>0.##</xsl:otherwise> 25 <xsl:otherwise>0.##</xsl:otherwise>
23 </xsl:choose> 26 </xsl:choose>
24 </xsl:variable> 27 </xsl:variable>
25 28
26 <xsl:variable name="i18n-event">Ereignis</xsl:variable> 29 <xsl:variable name="i18n-event">
27 <xsl:variable name="i18n-legend">Legende</xsl:variable> 30 <xsl:choose>
28 <xsl:variable name="i18n-color">Farbe</xsl:variable> 31 <xsl:when test="$locale = 'de'">Ereignis</xsl:when>
29 <xsl:variable name="i18n-meaning">Bedeutung</xsl:variable> 32 <xsl:otherwise>Event</xsl:otherwise>
30 <xsl:variable name="i18n-around-mnq">um MNQ</xsl:variable> 33 </xsl:choose>
31 <xsl:variable name="i18n-around-mq">um MQ</xsl:variable> 34 </xsl:variable>
32 <xsl:variable name="i18n-around-mhq">um MHQ</xsl:variable> 35
33 <xsl:variable name="i18n-above-hq5">über HQ5</xsl:variable> 36 <xsl:variable name="i18n-legend">
37 <xsl:choose>
38 <xsl:when test="$locale = 'de'">Legende</xsl:when>
39 <xsl:otherwise>Caption</xsl:otherwise>
40 </xsl:choose>
41 </xsl:variable>
42
43 <xsl:variable name="i18n-color">
44 <xsl:choose>
45 <xsl:when test="$locale = 'de'">Farbe</xsl:when>
46 <xsl:otherwise>Color</xsl:otherwise>
47 </xsl:choose>
48 </xsl:variable>
49
50 <xsl:variable name="i18n-meaning">
51 <xsl:choose>
52 <xsl:when test="$locale = 'de'">Bedeutung</xsl:when>
53 <xsl:otherwise>Meaning</xsl:otherwise>
54 </xsl:choose>
55 </xsl:variable>
56
57 <xsl:variable name="i18n-around-mnq">
58 <xsl:choose>
59 <xsl:when test="$locale = 'de'">um MNQ</xsl:when>
60 <xsl:otherwise>around MNQ</xsl:otherwise>
61 </xsl:choose>
62 </xsl:variable>
63
64 <xsl:variable name="i18n-around-mq">
65 <xsl:choose>
66 <xsl:when test="$locale = 'de'">um MQ</xsl:when>
67 <xsl:otherwise>around MQ</xsl:otherwise>
68 </xsl:choose>
69 </xsl:variable>
70
71 <xsl:variable name="i18n-around-mhq">
72 <xsl:choose>
73 <xsl:when test="$locale = 'de'">um MHQ</xsl:when>
74 <xsl:otherwise>around MHQ</xsl:otherwise>
75 </xsl:choose>
76 </xsl:variable>
77
78 <xsl:variable name="i18n-above-hq5">
79 <xsl:choose>
80 <xsl:when test="$locale = 'de'">über HQ5</xsl:when>
81 <xsl:otherwise>above HQ5</xsl:otherwise>
82 </xsl:choose>
83 </xsl:variable>
34 84
35 <!-- TODO: Format dates according locale. --> 85 <!-- TODO: Format dates according locale. -->
36 86
37 <xsl:template match="@*" mode="min"> 87 <xsl:template match="@*" mode="min">
38 <xsl:if test="position() = 1"> 88 <xsl:if test="position() = 1">

http://dive4elements.wald.intevation.org