User:Borgx/LanguageJv.php

From translatewiki.net
Jump to: navigation, search
<?php

require_once( "LanguageUtf8.php" );

/* private */ $wgNamespaceNamesJv = array(
	NS_MEDIA            => "Media",
	NS_SPECIAL          => "Astamiwa",
	NS_MAIN             => "",
	NS_TALK             => "Dhiskusi",
	NS_USER             => "Panganggo",
	NS_USER_TALK        => "Dhiskusi_Panganggo",
	NS_PROJECT          => $wgMetaNamespace,
	NS_PROJECT_TALK     => "Dhiskusi_" . $wgMetaNamespace,
	NS_IMAGE            => "Gambar",
	NS_IMAGE_TALK       => "Dhiskusi_Gambar",
	NS_MEDIAWIKI        => "MediaWiki",
	NS_MEDIAWIKI_TALK   => "Dhiskusi_MediaWiki",
	NS_TEMPLATE         => "Cithakan",
	NS_TEMPLATE_TALK    => "Dhiskusi_Cithakan",
	NS_HELP             => "Pitulung",
	NS_HELP_TALK        => "Dhiskusi_Pitulung",
	NS_CATEGORY         => "Kategori",
	NS_CATEGORY_TALK    => "Dhiskusi_Kategori"
) + $wgNamespaceNamesEn;

# For backwards compatibility: some talk namespaces were
# changed in 1.4.4 from their previous values, here:
$wgNamespaceAlternatesJv = array(
	NS_IMAGE_TALK       => "Gambar_Dhiskusi",
	NS_MEDIAWIKI_TALK   => "MediaWiki_Dhiskusi",
	NS_TEMPLATE_TALK    => "Cithakan_Dhiskusi",
	NS_HELP_TALK        => "Pitulung_Dhiskusi",
	NS_CATEGORY_TALK    => "Kategori_Dhiskusi"
);

/* private */ $wgQuickbarSettingsJv = array(
	"Ora ana", "Tetep sisih kiwa", "Tetep sisih tengen", "Ngambang sisih kiwa"
);

/* private */ $wgSkinNamesJv = array(
	'standard'    => "Standar",
) + $wgSkinNamesEn;

/* private */ $wgDateFormatsJv = array();

/* private */ $wgBookstoreListJv = array(
	# Local bookstores
	"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',
	"Bhinneka.com bookstore" => 'http://www.bhinneka.com/Buku/Engine/search.asp?fisbn=$1',

	//# Default (EN) Bookstores
	//"AddALL" => "http://www.addall.com/New/Partner.cgi?query=$1&type=ISBN",
	//"PriceSCAN" => "http://www.pricescan.com/books/bookDetail.asp?isbn=$1",
	//"Barnes & Noble" => "http://search.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=$1",
	//"Amazon.com" => "http://www.amazon.com/exec/obidos/ISBN=$1"
) + $wgBookstoreListEn;

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

class LanguageJv extends LanguageUtf8 {

	function getBookstoreList () {
		global $wgBookstoreListJv;
		return $wgBookstoreListJv;
	}

	function getNamespaces() {
		global $wgNamespaceNamesJv;
		return $wgNamespaceNamesJv;
	}

	function getNsIndex( $text ) {
		global $wgNamespaceNamesJv, $wgNamespaceAlternatesJv;

		foreach ( $wgNamespaceNamesJv as $i => $n ) {
			if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
		}
		foreach ( $wgNamespaceAlternatesJv as $i => $n ) {
			if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
		}

		# For backwards compatibility
		global $wgNamespaceNamesEn;
		foreach ( $wgNamespaceNamesEn as $i => $n ) {
			if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
		}
		return false;
	}

	function getQuickbarSettings() {
		global $wgQuickbarSettingsJv;
		return $wgQuickbarSettingsJv;
	}

	function getSkinNames() {
		global $wgSkinNamesJv;
		return $wgSkinNamesJv;
	}

	function getDateFormats() {
		global $wgDateFormatsJv;
		return $wgDateFormatsJv;
	}

	function getMessage( $key ) {
		global $wgAllMessagesJv;
		if( isset( $wgAllMessagesJv[$key] ) ) {
			return $wgAllMessagesJv[$key];
		} else {
			return parent::getMessage( $key );
		}
	}

	function separatorTransformTable() {
		return array(',' => '.', '.' => ',' );
	}

}

?>