From: Andrius R Date: Mon, 24 Oct 2005 11:24:52 +0000 (+0000) Subject: small fix to include thousands separator (nonbreaking space) X-Git-Tag: 1.6.0~1334 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%22http:/wikimediafoundation.org/fundraising/%7B%7B%20url_for%28%27user_settings%27%2C%20userid=session.userid%29%20%7D%7D?a=commitdiff_plain;h=973ca471a733d37a15e5f7612098d5c622aa2409;p=lhc%2Fweb%2Fwiklou.git small fix to include thousands separator (nonbreaking space) --- diff --git a/languages/LanguageLt.php b/languages/LanguageLt.php index 4173f221eb..febd3729f1 100644 --- a/languages/LanguageLt.php +++ b/languages/LanguageLt.php @@ -1076,8 +1076,8 @@ class LanguageLt extends LanguageUtf8 { return $wgAllMessagesLt; } - function formatNum( $number ) { - return strtr($number, '.,', ',.' ); + function formatNum( $number, $year = false ) { + return $year ? $number : strtr($this->commafy($number), array("." => ",", "," => " ") ); } }