r32860 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r32859‎ | r32860 | r32861 >
Date:17:39, 6 April 2008
Author:nikerabbit
Status:old
Tags:
Comment:
* (bug 13435) Number grouping
Modified paths:
  • /trunk/phase3/languages/classes/LanguageFi.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/classes/LanguageFi.php
@@ -6,16 +6,6 @@
77 * @author Niklas Laxström
88 */
99 class LanguageFi extends Language {
10 - /**
11 - * Avoid grouping whole numbers between 0 to 9999
12 - */
13 - function commafy($_) {
14 - if (!preg_match('/^-?\d{1,4}$/',$_)) {
15 - return strrev((string)preg_replace('/(\d{3})(?=\d)(?!\d*\.)/','$1,',strrev($_)));
16 - } else {
17 - return $_;
18 - }
19 - }
2010
2111 # Convert from the nominative form of a noun to some other case
2212 # Invoked with {{GRAMMAR:case|word}}

Status & tagging log