2 /** Javanese (Basa Jawa)
7 * @author Niklas Laxström
9 * @copyright Copyright © 2006, Niklas Laxström
10 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
13 require_once( 'LanguageUtf8.php' );
15 if (!$wgCachedMessageArrays) {
16 require_once('MessagesJv.php');
19 class LanguageJv
extends LanguageUtf8
{
20 private $mMessagesJv, $mNamespaceNamesJv, $mNamespaceAlternatesJv = null;
22 private $mQuickbarSettingsJv = array(
23 'Ora ana', 'Tetep sisih kiwa', 'Tetep sisih tengen', 'Ngambang sisih kiwa'
26 private $mSkinNamesJv = array(
27 'standard' => "Standar",
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',
35 function __construct() {
36 parent
::__construct();
38 global $wgAllMessagesJv;
39 $this->mMessagesJv
=& $wgAllMessagesJv;
41 global $wgMetaNamespace;
42 $this->mNamespaceNamesJv
= array(
44 NS_SPECIAL
=> 'Astamiwa',
46 NS_TALK
=> 'Dhiskusi',
47 NS_USER
=> 'Panganggo',
48 NS_USER_TALK
=> 'Dhiskusi_Panganggo',
49 NS_PROJECT
=> $wgMetaNamespace,
50 NS_PROJECT_TALK
=> 'Dhiskusi_' . $wgMetaNamespace,
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'
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'
73 function getNamespaces() {
74 return $this->mNamespaceNamesJv + parent
::getNamespaces();
77 function getQuickbarSettings() {
78 return $this->mQuickbarSettingsJv
;
81 function getSkinNames() {
82 return $this->mSkinNamesJv + parent
::getSkinNames();
85 function getBookstoreList() {
86 return $this->mBookstoreListJv + parent
::getBookstoreList();
89 function getMessage( $key ) {
90 if( isset( $this->mMessagesJv
[$key] ) ) {
91 return $this->mMessagesJv
[$key];
93 return parent
::getMessage( $key );
97 function getAllMessages() {
98 return $this->mMessagesJv
;
101 function getNsIndex( $text ) {
103 foreach ( $this->getNamespaces() as $i => $n ) {
104 if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
106 foreach ( $this->mNamespaceAlternatesJv
as $i => $n ) {
107 if ( 0 == strcasecmp( $n, $text ) ) { return $i; }