r12273 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r12272‎ | r12273 | r12274 >
Date:17:00, 28 December 2005
Author:nikerabbit
Status:old
Tags:
Comment:
* (bug 4382) Frisian numeric format
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/languages/LanguageFy.php (modified) (history)

Diff [purge]

Index: trunk/phase3/RELEASE-NOTES
@@ -363,6 +363,7 @@
364364 * Remove unused OutputPage::addCookie()
365365 * Set cookies to secure mode based on use of HTTPS or $wgCookieSecure
366366 * (bug 4392) Update of LanguageSr.php
 367+* (bug 4382) Frisian numeric format
367368
368369
369370 === Caveats ===
Index: trunk/phase3/languages/LanguageFy.php
@@ -941,6 +941,16 @@
942942 return $wgSkinNamesFy;
943943 }
944944
 945+
 946+ var $digitTransTable = array(
 947+ ',' => '.',
 948+ '.' => ','
 949+ );
 950+
 951+ function formatNum( $number, $year = false ) {
 952+ return !$year ? strtr($this->commafy($number), $this->digitTransTable ) : $number;
 953+ }
 954+
945955 function getDateFormats() {
946956 global $wgDateFormatsFy;
947957 return $wgDateFormatsFy;

Status & tagging log