diff options
Diffstat (limited to 'xsl/googlemaps.xsl')
-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"> |