From: Ævar Arnfjörð Bjarmason Date: Mon, 4 Jul 2005 16:41:34 +0000 (+0000) Subject: * Fixed Swedish numeric formatting X-Git-Tag: 1.5.0beta2~17 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/Special:FilePath/Image4?a=commitdiff_plain;h=f5b99b09ba529028eef103988447bc654da3076e;p=lhc%2Fweb%2Fwiklou.git * Fixed Swedish numeric formatting * Cleanup --- diff --git a/languages/LanguageSv.php b/languages/LanguageSv.php index 794bd062d7..e33d0b6d3f 100644 --- a/languages/LanguageSv.php +++ b/languages/LanguageSv.php @@ -64,10 +64,6 @@ require_once( "LanguageUtf8.php" ); MW_MATH_MATHML => "MathML om det är möjligt (experimentellt)", ); -/* private */ $wgDateFormatsSv = array( -# "Ingen inställning", -); - // All special pages have to be listed here: a description of "" // will make them not show up on the "Special Pages" page, which // is the right thing for some of them (such as the "targeted" ones). @@ -1084,7 +1080,15 @@ class LanguageSv extends LanguageUtf8 { return parent::getMessage( $key ); } } + + var $digitTransTable = array( + ',' => ' ', + '.' => ',' + ); + function formatNum( $number, $year = false ) { + return $year ? $number : strtr($this->commafy($number), $this->digitTransTable); + } } ?>