From: Niklas Laxström Date: Thu, 29 Jun 2006 21:33:41 +0000 (+0000) Subject: * Added Javanese localization (jv) X-Git-Tag: 1.31.0-rc.0~56519 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=6bfca931d311bfdd82d902126bb4acecea7823cf;p=lhc%2Fweb%2Fwiklou.git * Added Javanese localization (jv) * Thanks to Borgx and Meursault2004 --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index d4ff52c512..640d117f1f 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -602,6 +602,7 @@ Some default configuration options have changed: * (bug 6006) Allow hiding the password change fields using an authentication plugin * (bug 6489) Use appropriate link colour on Special:Shortpages * Added formatnum magic word +* Added Javanese localization (jv) == Compatibility == diff --git a/languages/LanguageJv.php b/languages/LanguageJv.php new file mode 100644 index 0000000000..a380add842 --- /dev/null +++ b/languages/LanguageJv.php @@ -0,0 +1,115 @@ + "Standar", + ); + + private $mBookstoreListJv = array( + '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', + ); + + function __construct() { + parent::__construct(); + + global $wgAllMessagesJv; + $this->mMessagesJv =& $wgAllMessagesJv; + + global $wgMetaNamespace; + $this->mNamespaceNamesJv = 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' + ); + + $this->mNamespaceAlternatesJv = 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' + ); + + } + + function getNamespaces() { + return $this->mNamespaceNamesJv + parent::getNamespaces(); + } + + function getQuickbarSettings() { + return $this->mQuickbarSettingsJv; + } + + function getSkinNames() { + return $this->mSkinNamesJv + parent::getSkinNames(); + } + + function getBookstoreList() { + return $this->mBookstoreListJv + parent::getBookstoreList(); + } + + function getMessage( $key ) { + if( isset( $this->mMessagesJv[$key] ) ) { + return $this->mMessagesJv[$key]; + } else { + return parent::getMessage( $key ); + } + } + + function getAllMessages() { + return $this->mMessagesJv; + } + + function getNsIndex( $text ) { + + foreach ( $this->getNamespaces() as $i => $n ) { + if ( 0 == strcasecmp( $n, $text ) ) { return $i; } + } + foreach ( $this->mNamespaceAlternatesJv as $i => $n ) { + if ( 0 == strcasecmp( $n, $text ) ) { return $i; } + } + + return false; + } + +} + +?> diff --git a/languages/MessagesJv.php b/languages/MessagesJv.php new file mode 100644 index 0000000000..dd310e4a4e --- /dev/null +++ b/languages/MessagesJv.php @@ -0,0 +1,6 @@ +