summaryrefslogtreecommitdiff
path: root/xsl
diff options
context:
space:
mode:
Diffstat (limited to 'xsl')
-rw-r--r--xsl/googlemaps.xsl17
1 files changed, 14 insertions, 3 deletions
diff --git a/xsl/googlemaps.xsl b/xsl/googlemaps.xsl
index dd77743..fd8fc55 100644
--- a/xsl/googlemaps.xsl
+++ b/xsl/googlemaps.xsl
@@ -27,6 +27,16 @@
</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
+ <xsl:with-param name="lang">
+ <xsl:choose>
+ <xsl:when test="@lang">
+ <xsl:value-of select="@lang" />
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="'de'" />
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:with-param>
</xsl:call-template>
</xsl:template>
@@ -34,10 +44,11 @@
<xsl:param name="location" />
<xsl:param name="width" select="'640'" />
<xsl:param name="height" select="'480'" />
+ <xsl:param name="lang" select="'de'" />
- <xsl:variable name="base_uri" select="'http://maps.google.de/maps?f=q&amp;hl=de&amp;source=s_q&amp;'" />
- <xsl:variable name="map_base_uri" select="concat($base_uri, 'source=s_q&amp;output=embed&amp;q=')" />
- <xsl:variable name="link_base_uri" select="concat($base_uri, 'source=embed&amp;output=embed&amp;q=')" />
+ <xsl:variable name="base_uri" select="concat('http://maps.google.de/maps?f=q&amp;hl=', $lang)" />
+ <xsl:variable name="map_base_uri" select="concat($base_uri, '&amp;source=s_q&amp;output=embed&amp;q=')" />
+ <xsl:variable name="link_base_uri" select="concat($base_uri, '&amp;source=embed&amp;output=embed&amp;q=')" />
<xsl:element name="iframe">
<xsl:attribute name="src">