fix notice warning in some configs
[mediawiki.git] / languages / LanguageKm.php
blob429a50174b8e63c07a08437ca7a506111ff0ee0c
1 <?php
2 /** Khmer (ភាសាខ្មែរ)
4 * @package MediaWiki
5 * @subpackage Language
7 * @author Ævar Arnfjörð Bjarmason <avarab@gmail.com>
8 */
10 require_once( 'LanguageUtf8.php' );
12 class LanguageKm extends LanguageUtf8 {
13 var $digitTransTable = array(
14 '0' => '០',
15 '1' => '១',
16 '2' => '២',
17 '3' => '៣',
18 '4' => '៤',
19 '5' => '៥',
20 '6' => '៦',
21 '7' => '៧',
22 '8' => '៨',
23 '9' => '៩'
26 function formatNum( $number ) {
27 global $wgTranslateNumerals;
28 if( $wgTranslateNumerals ) {
29 return strtr( $number, $this->digitTransTable );
30 } else {
31 return $number;