Introduce optional (off by default) language selector bar for user login and registra...
[lhc/web/wiklou.git] / languages / LanguageKn.php
1 <?php
2 /**
3 * Language file for Kannada.
4 * Mosty done by:
5 * Hari Prasad Nadig <hpnadig@gmail.com>
6 * http://en.wikipedia.org/wiki/User:Hpnadig
7 * Ashwath Mattur <ashwatham@gmail.com>
8 * http://en.wikipedia.org/wiki/User:Ashwatham
9 *
10 * Also see the Kannada Localisation Initiative at:
11 * http://kannada.sourceforge.net/
12 *
13 * @package MediaWiki
14 * @subpackage Language
15 */
16
17 require_once( 'LanguageUtf8.php' );
18
19 if (!$wgCachedMessageArrays) {
20 require_once('MessagesKn.php');
21 }
22
23 class LanguageKn extends LanguageUtf8 {
24 function digitTransformTable() {
25 return array(
26 '0' => '೦',
27 '1' => '೧',
28 '2' => '೨',
29 '3' => '೩',
30 '4' => '೪',
31 '5' => '೫',
32 '6' => '೬',
33 '7' => '೭',
34 '8' => '೮',
35 '9' => '೯'
36 );
37 }
38
39 function getMessage( $key ) {
40 global $wgAllMessagesKn;
41 if( array_key_exists( $key, $wgAllMessagesKn ) )
42 return $wgAllMessagesKn[$key];
43 else
44 return parent::getMessage($key);
45 }
46
47 }
48
49 ?>