summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-08-23 18:52:37 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-08-23 18:52:37 +0200
commitad18c6bc6cb043837813ba5652a7b484d44d2322 (patch)
tree2a35a60eeda2613177ef99f3626e401f7eeff8e0
parent237fa8c398a4ae792080c43231f5017babc41a15 (diff)
downloadmutti-web-ad18c6bc6cb043837813ba5652a7b484d44d2322.tar.gz
mutti-web-ad18c6bc6cb043837813ba5652a7b484d44d2322.tar.bz2
mutti-web-ad18c6bc6cb043837813ba5652a7b484d44d2322.zip
googlemaps: make lang definable
Default to de.
-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">