From: Ævar Arnfjörð Bjarmason Date: Mon, 4 Jul 2005 16:23:02 +0000 (+0000) Subject: * (bug 2695) Spanish number formatting X-Git-Tag: 1.5.0beta2~19 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=9768b91b1c97c6982b3b5c2ddab05d741a896a19;p=lhc%2Fweb%2Fwiklou.git * (bug 2695) Spanish number formatting --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index dee70ce134..713b4416e3 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -446,7 +446,8 @@ Various bugfixes, small features, and a few experimental things: * Add support for &preload=Page_name (load text of an existing page into edit area) and &editintro=Page_name (load text of an existing page instead of MediaWiki:Newpagetext) to &action=edit, if page is new. -* (bugs 2633, 2672, 2685) Fix Estonian, Portuguese, Italian and Finnish numeric formatting +* (bugs 2633, 2672, 2685, 2695) Fix Estonian, Portuguese, Italian, Finnish and + Spanish numeric formatting * (bug 2658) Fix signature time, localtime to match timezone offset again * Files from shared repositories (e.g. commons) now display with their image description pages when viewed on local wikis. diff --git a/languages/LanguageEs.php b/languages/LanguageEs.php index a2b64ed1a8..45a5ee5c49 100644 --- a/languages/LanguageEs.php +++ b/languages/LanguageEs.php @@ -1202,5 +1202,9 @@ class LanguageEs extends LanguageUtf8 { return parent::getMessage( $key ); } } + + function formatNum( $number, $year = false ) { + return $year ? $number : strtr($this->commafy($number), '.,', ',.' ); + } } ?>