Removing a Hebrew alias of #REDIRECT which is a spelling mistake.
[lhc/web/wiklou.git] / languages / LanguageJv.php
1 <?php
2 /** Javanese (Basa Jawa)
3 *
4 * @package MediaWiki
5 * @subpackage Language
6 *
7 * @author Niklas Laxström
8 *
9 * @copyright Copyright © 2006, Niklas Laxström
10 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
11 */
12
13 require_once( 'LanguageUtf8.php' );
14
15 if (!$wgCachedMessageArrays) {
16 require_once('MessagesJv.php');
17 }
18
19 class LanguageJv extends LanguageUtf8 {
20 private $mMessagesJv, $mNamespaceNamesJv, $mNamespaceAlternatesJv = null;
21
22 private $mQuickbarSettingsJv = array(
23 'Ora ana', 'Tetep sisih kiwa', 'Tetep sisih tengen', 'Ngambang sisih kiwa'
24 );
25
26 private $mSkinNamesJv = array(
27 'standard' => "Standar",
28 );
29
30 private $mBookstoreListJv = array(
31 'Gramedia Cyberstore (via Google)' => 'http://www.google.com/search?q=%22ISBN+:+$1%22+%22product_detail%22+site:www.gramediacyberstore.com+OR+site:www.gramediaonline.com+OR+site:www.kompas.com&hl=id',
32 'Bhinneka.com bookstore' => 'http://www.bhinneka.com/Buku/Engine/search.asp?fisbn=$1',
33 );
34
35 function __construct() {
36 parent::__construct();
37
38 global $wgAllMessagesJv;
39 $this->mMessagesJv =& $wgAllMessagesJv;
40
41 global $wgMetaNamespace;
42 $this->mNamespaceNamesJv = array(
43 NS_MEDIA => 'Media',
44 NS_SPECIAL => 'Astamiwa',
45 NS_MAIN => '',
46 NS_TALK => 'Dhiskusi',
47 NS_USER => 'Panganggo',
48 NS_USER_TALK => 'Dhiskusi_Panganggo',
49 NS_PROJECT => $wgMetaNamespace,
50 NS_PROJECT_TALK => 'Dhiskusi_' . $wgMetaNamespace,
51 NS_IMAGE => 'Gambar',
52 NS_IMAGE_TALK => 'Dhiskusi_Gambar',
53 NS_MEDIAWIKI => 'MediaWiki',
54 NS_MEDIAWIKI_TALK => 'Dhiskusi_MediaWiki',
55 NS_TEMPLATE => 'Cithakan',
56 NS_TEMPLATE_TALK => 'Dhiskusi_Cithakan',
57 NS_HELP => 'Pitulung',
58 NS_HELP_TALK => 'Dhiskusi_Pitulung',
59 NS_CATEGORY => 'Kategori',
60 NS_CATEGORY_TALK => 'Dhiskusi_Kategori'
61 );
62
63 $this->mNamespaceAlternatesJv = array(
64 NS_IMAGE_TALK => 'Gambar_Dhiskusi',
65 NS_MEDIAWIKI_TALK => 'MediaWiki_Dhiskusi',
66 NS_TEMPLATE_TALK => 'Cithakan_Dhiskusi',
67 NS_HELP_TALK => 'Pitulung_Dhiskusi',
68 NS_CATEGORY_TALK => 'Kategori_Dhiskusi'
69 );
70
71 }
72
73 function getNamespaces() {
74 return $this->mNamespaceNamesJv + parent::getNamespaces();
75 }
76
77 function getQuickbarSettings() {
78 return $this->mQuickbarSettingsJv;
79 }
80
81 function getSkinNames() {
82 return $this->mSkinNamesJv + parent::getSkinNames();
83 }
84
85 function getBookstoreList() {
86 return $this->mBookstoreListJv + parent::getBookstoreList();
87 }
88
89 function getMessage( $key ) {
90 if( isset( $this->mMessagesJv[$key] ) ) {
91 return $this->mMessagesJv[$key];
92 } else {
93 return parent::getMessage( $key );
94 }
95 }
96
97 function getAllMessages() {
98 return $this->mMessagesJv;
99 }
100
101 function getNsIndex( $text ) {
102
103 foreach ( $this->getNamespaces() as $i => $n ) {
104 if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
105 }
106 foreach ( $this->mNamespaceAlternatesJv as $i => $n ) {
107 if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
108 }
109
110 return false;
111 }
112
113 }
114
115 ?>