diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2013-03-06 19:11:19 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-03-07 10:27:20 -0800 |
commit | a9cc7f9b10017d2fe3d95bf19d1e9c2389631ef9 (patch) | |
tree | ca8b41c48bc42461cd65de1c0052aab15354e37c /xslt/SuuntoSDM.xslt | |
parent | 2120bc3a9e1729b3d7374725260f5e8603d9fa4f (diff) | |
download | subsurface-a9cc7f9b10017d2fe3d95bf19d1e9c2389631ef9.tar.gz |
Fix import when locale set to decimal comma
This should take care of locale caused problems when the input uses decimal
point but locale uses decimal comma. Also the sample I have of Suunto DM3
format weight is represented with comma instead of dot so converting that as
well.
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'xslt/SuuntoSDM.xslt')
-rw-r--r-- | xslt/SuuntoSDM.xslt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xslt/SuuntoSDM.xslt b/xslt/SuuntoSDM.xslt index 14d088c97..a3159a58b 100644 --- a/xslt/SuuntoSDM.xslt +++ b/xslt/SuuntoSDM.xslt @@ -65,7 +65,7 @@ <xsl:if test="WEIGTH != ''"> <weightsystem> <xsl:attribute name="weight"> - <xsl:value-of select="concat(WEIGTH, ' kg')"/> + <xsl:value-of select="concat(translate(WEIGTH, ',', '.'), ' kg')"/> </xsl:attribute> </weightsystem> </xsl:if> @@ -240,7 +240,7 @@ <xsl:choose> <xsl:when test="$number != ''"> - <xsl:value-of select="concat(($number div 1000), ' bar')"/> + <xsl:value-of select="concat(format-number(($number div 1000), '#.##'), ' bar')"/> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> |