diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-08-23 18:52:37 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-08-23 18:52:37 +0200 |
commit | ad18c6bc6cb043837813ba5652a7b484d44d2322 (patch) | |
tree | 2a35a60eeda2613177ef99f3626e401f7eeff8e0 | |
parent | 237fa8c398a4ae792080c43231f5017babc41a15 (diff) | |
download | mutti-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.xsl | 17 |
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&hl=de&source=s_q&'" /> - <xsl:variable name="map_base_uri" select="concat($base_uri, 'source=s_q&output=embed&q=')" /> - <xsl:variable name="link_base_uri" select="concat($base_uri, 'source=embed&output=embed&q=')" /> + <xsl:variable name="base_uri" select="concat('http://maps.google.de/maps?f=q&hl=', $lang)" /> + <xsl:variable name="map_base_uri" select="concat($base_uri, '&source=s_q&output=embed&q=')" /> + <xsl:variable name="link_base_uri" select="concat($base_uri, '&source=embed&output=embed&q=')" /> <xsl:element name="iframe"> <xsl:attribute name="src"> |