3 * Language file for Kannada.
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
10 * Also see the Kannada Localisation Initiative at:
11 * http://kannada.sourceforge.net/
14 * @subpackage Language
17 require_once( 'LanguageUtf8.php' );
19 if (!$wgCachedMessageArrays) {
20 require_once('MessagesKn.php');
23 class LanguageKn
extends LanguageUtf8
{
24 var $digitTransTable = array(
37 function getMessage( $key ) {
38 global $wgAllMessagesKn;
39 if( array_key_exists( $key, $wgAllMessagesKn ) )
40 return $wgAllMessagesKn[$key];
42 return parent
::getMessage($key);
45 function formatNum( $number ) {
46 global $wgTranslateNumerals;
47 if( $wgTranslateNumerals ) {
48 return strtr( $number, $this->digitTransTable
);