fix notice warning in some configs
[mediawiki.git] / languages / LanguageMl.php
blobedf8df384f72a99cb73bd9c3c043b7ffec54b74e
1 <?php
2 /** Malayalam (മലയാളം)
4 * @package MediaWiki
5 * @subpackage Language
7 * @author Ævar Arnfjörð Bjarmason <avarab@gmail.com>
8 */
10 require_once( 'LanguageUtf8.php' );
12 class LanguageMl 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;