diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2006-10-11 18:12:39 +0000 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2006-10-11 18:12:39 +0000 |
commit | 183851b06bd6c52f3cae5375f433da720d410447 (patch) | |
tree | a477257decbf3360127f6739c2f9d0ec57a03d39 /languages/LanguageKn.php |
MediaWiki 1.7.1 wiederhergestellt
Diffstat (limited to 'languages/LanguageKn.php')
-rw-r--r-- | languages/LanguageKn.php | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/languages/LanguageKn.php b/languages/LanguageKn.php new file mode 100644 index 00000000..755556cc --- /dev/null +++ b/languages/LanguageKn.php @@ -0,0 +1,90 @@ +<?php +/** + * Language file for Kannada. + * Mosty done by: + * Hari Prasad Nadig <hpnadig@gmail.com> + * http://en.wikipedia.org/wiki/User:Hpnadig + * Ashwath Mattur <ashwatham@gmail.com> + * http://en.wikipedia.org/wiki/User:Ashwatham + * + * Also see the Kannada Localisation Initiative at: + * http://kannada.sourceforge.net/ + * + * @package MediaWiki + * @subpackage Language + */ + +require_once( 'LanguageUtf8.php' ); + +if (!$wgCachedMessageArrays) { + require_once('MessagesKn.php'); +} + +class LanguageKn extends LanguageUtf8 { + private $mMessagesKn, $mNamespaceNamesKn = null; + + function __construct() { + parent::__construct(); + + global $wgAllMessagesKn; + $this->mMessagesKn =& $wgAllMessagesKn; + + global $wgMetaNamespace; + $this->mNamespaceNamesKn = array( + NS_MEDIA => 'ಮೀಡಿಯ', + NS_SPECIAL => 'ವಿಶೇಷ', + NS_MAIN => '', + NS_TALK => 'ಚರ್ಚೆಪುಟ', + NS_USER => 'ಸದಸ್ಯ', + NS_USER_TALK => 'ಸದಸ್ಯರ_ಚರ್ಚೆಪುಟ', + NS_PROJECT => $wgMetaNamespace, + NS_PROJECT_TALK => $wgMetaNamespace . '_ಚರ್ಚೆ', + NS_IMAGE => 'ಚಿತ್ರ', + NS_IMAGE_TALK => 'ಚಿತ್ರ_ಚರ್ಚೆಪುಟ', + NS_MEDIAWIKI => 'ಮೀಡಿಯವಿಕಿ', + NS_MEDIAWIKI_TALK => 'ಮೀಡೀಯವಿಕಿ_ಚರ್ಚೆ', + NS_TEMPLATE => 'ಟೆಂಪ್ಲೇಟು', + NS_TEMPLATE_TALK => 'ಟೆಂಪ್ಲೇಟು_ಚರ್ಚೆ', + NS_HELP => 'ಸಹಾಯ', + NS_HELP_TALK => 'ಸಹಾಯ_ಚರ್ಚೆ', + NS_CATEGORY => 'ವರ್ಗ', + NS_CATEGORY_TALK => 'ವರ್ಗ_ಚರ್ಚೆ' + ); + + } + + function getNamespaces() { + return $this->mNamespaceNamesKn + parent::getNamespaces(); + } + + + function digitTransformTable() { + return array( + '0' => '೦', + '1' => '೧', + '2' => '೨', + '3' => '೩', + '4' => '೪', + '5' => '೫', + '6' => '೬', + '7' => '೭', + '8' => '೮', + '9' => '೯' + ); + } + + function getMessage( $key ) { + if( isset( $this->mMessagesKn[$key] ) ) { + return $this->mMessagesKn[$key]; + } else { + return parent::getMessage( $key ); + } + } + + function getAllMessages() { + return $this->mMessagesKn; + } + +} + +?> |