summaryrefslogtreecommitdiff
path: root/languages/LanguageXal.php
blob: 1a32106909e92ddb1b23d7b54cd4f25d612aca95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
/**
  * @package MediaWiki
  * @subpackage Language
  */
# Kalmyk stub localization;

require_once( 'LanguageUtf8.php' );

/* private */ $wgNamespaceNamesXal = 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        => 'MediaWiki',
	NS_MEDIAWIKI_TALK   => 'MediaWiki_тускар_ухалвр',
	NS_TEMPLATE         => 'Зура',
	NS_TEMPLATE_TALK    => 'Зуран_тускар_ухалвр',
	NS_HELP             => 'Цəəлһлһн',
	NS_HELP_TALK        => 'Цəəлһлһин_тускар_ухалвр',
	NS_CATEGORY         => 'Янз',
	NS_CATEGORY_TALK    => 'Янзин_тускар_ухалвр',
) + $wgNamespaceNamesEn;

if (!$wgCachedMessageArrays) {
	require_once('MessagesXal.php');
}

class LanguageXal extends LanguageUtf8 {
	function getNamespaces() {
		global $wgNamespaceNamesXal;
		return $wgNamespaceNamesXal;
	}

	function getMessage( $key ) {
		global $wgAllMessagesXal;
		return isset($wgAllMessagesXal[$key]) ? $wgAllMessagesXal[$key] : parent::getMessage($key);
	}

	function fallback8bitEncoding() {
		return "windows-1251";
	}

}
?>