summaryrefslogtreecommitdiff
path: root/languages/LanguagePa.php
blob: 4588e0b599e7d90d388e60c079fba50d0c87b3ea (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<?php
/** Punjabi (Gurmukhi)
  * @package MediaWiki
  * @subpackage Language
  */
# This file is dual-licensed under GFDL and GPL.
#
# See: http://bugzilla.wikimedia.org/show_bug.cgi?id=1478

require_once('LanguageUtf8.php');

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

class LanguagePa extends LanguageUtf8 {
	private $mMessagesPa, $mNamespaceNamesPa = null;

	private $mQuickbarSettingsPa = array(
		'ਕੋਈ ਨਹੀਂ', 'ਸਥਿਰ ਖੱਬੇ', 'ਸਥਿਰ ਸੱਜਾ', 'ਤੈਰਦਾ ਖੱਬੇ'
	);
	
	private $mSkinNamesPa = array(
		'standard'      => 'ਮਿਆਰੀ',
	);

	function __construct() {
		parent::__construct();

		global $wgAllMessagesPa;
		$this->mMessagesPa =& $wgAllMessagesPa;

		global $wgMetaNamespace;
		$this->mNamespaceNamesPa = 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->mNamespaceNamesPa + parent::getNamespaces();
	}

	function getQuickbarSettings() {
		return $this->mQuickbarSettingsPa;
	}

	function getSkinNames() {
		return $this->mSkinNamesPa + parent::getSkinNames();
	}

	function getMessage( $key ) {
		if( isset( $this->mMessagesPa[$key] ) ) {
			return $this->mMessagesPa[$key];
		} else {
			return parent::getMessage( $key );
		}
	}

	function getAllMessages() {
		return $this->mMessagesPa;
	}

	function digitTransformTable() {
		return array(
			'0' => '੦',
			'1' => '੧',
			'2' => '੨',
			'3' => '੩',
			'4' => '੪',
			'5' => '੫',
			'6' => '੬',
			'7' => '੭',
			'8' => '੮',
			'9' => '੯'
		);
	}

}
?>