8 require_once("LanguageHe.php");
10 if (!$wgCachedMessageArrays) {
11 require_once('MessagesYi.php');
14 class LanguageYi
extends LanguageHe
{
15 private $mMessagesYi, $mNamespaceNamesYi = null;
17 function __construct() {
18 parent
::__construct();
20 global $wgAllMessagesYi;
21 $this->mMessagesYi
=& $wgAllMessagesYi;
23 global $wgMetaNamespace;
24 $this->mNamespaceNamesYi
= array(
26 NS_SPECIAL
=> 'באַזונדער',
29 NS_USER
=> 'באַניצער',
30 NS_USER_TALK
=> 'באַניצער_רעדן',
31 NS_PROJECT
=> $wgMetaNamespace,
32 NS_PROJECT_TALK
=> $wgMetaNamespace . '_רעדן',
34 NS_IMAGE_TALK
=> 'בילד_רעדן',
35 NS_MEDIAWIKI
=> 'מעדיעװיקי',
36 NS_MEDIAWIKI_TALK
=> 'מעדיעװיקי_רעדן',
37 NS_TEMPLATE
=> 'מוסטער',
38 NS_TEMPLATE_TALK
=> 'מוסטער_רעדן',
40 NS_HELP_TALK
=> 'הילף_רעדן',
41 NS_CATEGORY
=> 'קאַטעגאָריע',
42 NS_CATEGORY_TALK
=> 'קאַטעגאָריע_רעדן'
46 function getNamespaces() {
47 return $this->mNamespaceNamesYi + parent
::getNamespaces();
50 function getMessage( $key ) {
51 if( isset( $this->mMessagesYi
[$key] ) ) {
52 return $this->mMessagesYi
[$key];
54 return parent
::getMessage( $key );
58 function getAllMessages() {
59 return $this->mMessagesYi
;
62 function getDefaultUserOptions() {
63 $opt = parent
::getDefaultUserOptions();
64 $opt['quickbar'] = 2; # Right-to-left
68 # For right-to-left language support
73 function getNsIndex( $text ) {
76 foreach ( $this->mNamespaceNamesYi
as $i => $n ) {
77 if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
79 if( $wgSitename == 'װיקיפּעדיע' ) {
80 if( 0 == strcasecmp( 'וויקיפעדיע', $text ) ) return NS_PROJECT
;
81 if( 0 == strcasecmp( 'וויקיפעדיע_רעדן', $text ) ) return NS_PROJECT_TALK
;
83 if( $wgSitename == 'װיקיביבליאָטעק' ) {
84 if( 0 == strcasecmp( 'וויקיביבליאטעק', $text ) ) return NS_PROJECT
;
85 if( 0 == strcasecmp( 'וויקיביבליאטעק_רעדן', $text ) ) return NS_PROJECT_TALK
;
87 if( $wgSitename == 'װיקיװערטערבוך' ) {
88 if( 0 == strcasecmp( 'וויקיווערטערבוך', $text ) ) return NS_PROJECT
;
89 if( 0 == strcasecmp( 'וויקיווערטערבוך_רעדן', $text ) ) return NS_PROJECT_TALK
;
91 if( $wgSitename == 'װיקינײַעס' ) {
92 if( 0 == strcasecmp( 'וויקינייעס', $text ) ) return NS_PROJECT
;
93 if( 0 == strcasecmp( 'וויקינייעס_רעדן', $text ) ) return NS_PROJECT_TALK
;
95 if( 0 == strcasecmp( 'באזונדער', $text ) ) return NS_SPECIAL
;
96 if( 0 == strcasecmp( 'באנוצער', $text ) ) return NS_USER
;
97 if( 0 == strcasecmp( 'באנוצער_רעדן', $text ) ) return NS_USER_TALK
;
98 if( 0 == strcasecmp( 'מעדיעוויקי', $text ) ) return NS_MEDIAWIKI
;
99 if( 0 == strcasecmp( 'מעדיעוויקי_רעדן', $text ) ) return NS_MEDIAWIKI_TALK
;
100 if( 0 == strcasecmp( 'קאטעגאריע', $text ) ) return NS_CATEGORY
;
101 if( 0 == strcasecmp( 'קאטעגאריע_רעדן', $text ) ) return NS_CATEGORY_TALK
;