r37615 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r37614‎ | r37615 | r37616 >
Date:13:59, 13 July 2008
Author:nikerabbit
Status:old
Tags:
Comment:
* Number format for Khmer (no thousand separator, ',' as decimal separator)
Modified paths:
  • /trunk/phase3/languages/classes/LanguageKm.php (added) (history)
  • /trunk/phase3/languages/messages/MessagesKm.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/messages/MessagesKm.php
@@ -29,6 +29,10 @@
3030 '9' => '៩', # ៩
3131 );
3232
 33+$separatorTransformTable = array(
 34+ '.' => ','
 35+);
 36+
3337 $datePreferences = array(
3438 'default',
3539 'km',
Index: trunk/phase3/languages/classes/LanguageKm.php
@@ -0,0 +1,17 @@
 2+<?php
 3+/** Khmer (ភាសាខ្មែរ)
 4+ *
 5+ * @ingroup Language
 6+ *
 7+ * @author Niklas Laxström
 8+ */
 9+class LanguageKm extends Language {
 10+ function commafy($_) {
 11+ /* NO-op for Khmer. Cannot use
 12+ * $separatorTransformTable = array( ',' => '' )
 13+ * That would break when parsing and doing strstr '' => 'foo';
 14+ */
 15+ return $_;
 16+ }
 17+
 18+}
Property changes on: trunk/phase3/languages/classes/LanguageKm.php
___________________________________________________________________
Added: svn:eol-style
119 + native

Status & tagging log