summaryrefslogtreecommitdiff
path: root/languages/LanguageBn.php
blob: d61c995e156d4df2ba9410eba03ebda837a88a17 (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
<?php
/** Bengali (বাংলা)
  *
  * @package MediaWiki
  * @subpackage Language
  */

require_once( 'LanguageUtf8.php' );

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

class LanguageBn extends LanguageUtf8 {
	private $mMessagesBn, $mNamespaceNamesBn = null;

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

		global $wgAllMessagesBn;
		$this->mMessagesBn =& $wgAllMessagesBn;

		global $wgMetaNamespace;
		$this->mNamespaceNamesBn = array(
			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_TALK => 'MediaWiki_আলাপ'
		);
	}

	function getNamespaces() {
		return $this->mNamespaceNamesBn + parent::getNamespaces();
	}

	function getDateFormats() {
		return false;
	}

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

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

	function digitTransformTable() {
		return array(
			'0' => '০',
			'1' => '১',
			'2' => '২',
			'3' => '৩',
			'4' => '৪',
			'5' => '৫',
			'6' => '৬',
			'7' => '৭',
			'8' => '৮',
			'9' => '৯'
		);
	}

}

?>