From: Niklas Laxström Date: Wed, 28 Dec 2005 17:00:05 +0000 (+0000) Subject: * (bug 4382) Frisian numeric format X-Git-Tag: 1.6.0~869 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=430693526b9d9c4040aabcf9b240253a73c48599;p=lhc%2Fweb%2Fwiklou.git * (bug 4382) Frisian numeric format --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 454fc20c8e..ba4a3de2f7 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -363,6 +363,7 @@ fully support the editing toolbar, but was found to be too confusing. * Remove unused OutputPage::addCookie() * Set cookies to secure mode based on use of HTTPS or $wgCookieSecure * (bug 4392) Update of LanguageSr.php +* (bug 4382) Frisian numeric format === Caveats === diff --git a/languages/LanguageFy.php b/languages/LanguageFy.php index efb6b8b562..2cf2c3903d 100644 --- a/languages/LanguageFy.php +++ b/languages/LanguageFy.php @@ -941,6 +941,16 @@ class LanguageFy extends LanguageUtf8 { return $wgSkinNamesFy; } + + var $digitTransTable = array( + ',' => '.', + '.' => ',' + ); + + function formatNum( $number, $year = false ) { + return !$year ? strtr($this->commafy($number), $this->digitTransTable ) : $number; + } + function getDateFormats() { global $wgDateFormatsFy; return $wgDateFormatsFy;