* (bug 5097) Fix Hungarian language (hu): thousands separator
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Sun, 26 Feb 2006 15:55:27 +0000 (15:55 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Sun, 26 Feb 2006 15:55:27 +0000 (15:55 +0000)
Patch by Kov��cs Endre J��nos

RELEASE-NOTES
languages/LanguageHu.php

index 8ae8052..7cca090 100644 (file)
@@ -244,6 +244,7 @@ i18n / Languages:
 * (bug 4788) One string for MessagesPl
 * Restriction types now use restriction-* messages instead of ui messages
 * (bug 4685) Slovenian LanguageSl.php hardcodes project namespace
+* (bug 5097) Fix Hungarian language (hu): thousands separator
 
 Parser:
 * (bug 2522) {{CURRENTDAY2}} now shows the current day number with two digits
index 7581f40..377ecfa 100644 (file)
@@ -124,7 +124,7 @@ class LanguageHu extends LanguageUtf8 {
        }
 
        function formatNum( $number, $year = false ) {
-               return !$year ? strtr($this->commafy($number), '.,', ',.' ) : $number;
+               return !$year ? strtr($this->commafy($number), array( '.' => ',', ',' => "\xc2\xa0" )) : $number;
        }
 
 }