* (bug 2695) Spanish number formatting
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Mon, 4 Jul 2005 16:23:02 +0000 (16:23 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Mon, 4 Jul 2005 16:23:02 +0000 (16:23 +0000)
RELEASE-NOTES
languages/LanguageEs.php

index dee70ce..713b441 100644 (file)
@@ -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.
index a2b64ed..45a5ee5 100644 (file)
@@ -1202,5 +1202,9 @@ class LanguageEs extends LanguageUtf8 {
                        return parent::getMessage( $key );
                }
        }
+       
+       function formatNum( $number, $year = false ) {
+               return $year ? $number : strtr($this->commafy($number), '.,', ',.' );
+       }
 }
 ?>