From 430693526b9d9c4040aabcf9b240253a73c48599 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Wed, 28 Dec 2005 17:00:05 +0000 Subject: [PATCH] * (bug 4382) Frisian numeric format --- RELEASE-NOTES | 1 + languages/LanguageFy.php | 10 ++++++++++ 2 files changed, 11 insertions(+) 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; -- 2.20.1