From 183851b06bd6c52f3cae5375f433da720d410447 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Wed, 11 Oct 2006 18:12:39 +0000 Subject: MediaWiki 1.7.1 wiederhergestellt --- languages/LanguageYi.php | 106 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 languages/LanguageYi.php (limited to 'languages/LanguageYi.php') diff --git a/languages/LanguageYi.php b/languages/LanguageYi.php new file mode 100644 index 00000000..ab84a050 --- /dev/null +++ b/languages/LanguageYi.php @@ -0,0 +1,106 @@ +mMessagesYi =& $wgAllMessagesYi; + + global $wgMetaNamespace; + $this->mNamespaceNamesYi = array( + NS_MEDIA => 'מעדיע', + NS_SPECIAL => 'באַזונדער', + NS_MAIN => '', + NS_TALK => 'רעדן', + NS_USER => 'באַניצער', + NS_USER_TALK => 'באַניצער_רעדן', + NS_PROJECT => $wgMetaNamespace, + NS_PROJECT_TALK => $wgMetaNamespace . '_רעדן', + NS_IMAGE => 'בילד', + NS_IMAGE_TALK => 'בילד_רעדן', + NS_MEDIAWIKI => 'מעדיעװיקי', + NS_MEDIAWIKI_TALK => 'מעדיעװיקי_רעדן', + NS_TEMPLATE => 'מוסטער', + NS_TEMPLATE_TALK => 'מוסטער_רעדן', + NS_HELP => 'הילף', + NS_HELP_TALK => 'הילף_רעדן', + NS_CATEGORY => 'קאַטעגאָריע', + NS_CATEGORY_TALK => 'קאַטעגאָריע_רעדן' + ); + } + + function getNamespaces() { + return $this->mNamespaceNamesYi + parent::getNamespaces(); + } + + function getMessage( $key ) { + if( isset( $this->mMessagesYi[$key] ) ) { + return $this->mMessagesYi[$key]; + } else { + return parent::getMessage( $key ); + } + } + + function getAllMessages() { + return $this->mMessagesYi; + } + + function getDefaultUserOptions() { + $opt = parent::getDefaultUserOptions(); + $opt['quickbar'] = 2; # Right-to-left + return $opt; + } + + # For right-to-left language support + function isRTL() { + return true; + } + + function getNsIndex( $text ) { + global $wgSitename; + + foreach ( $this->mNamespaceNamesYi as $i => $n ) { + if ( 0 == strcasecmp( $n, $text ) ) { return $i; } + } + if( $wgSitename == 'װיקיפּעדיע' ) { + if( 0 == strcasecmp( 'וויקיפעדיע', $text ) ) return NS_PROJECT; + if( 0 == strcasecmp( 'וויקיפעדיע_רעדן', $text ) ) return NS_PROJECT_TALK; + } + if( $wgSitename == 'װיקיביבליאָטעק' ) { + if( 0 == strcasecmp( 'וויקיביבליאטעק', $text ) ) return NS_PROJECT; + if( 0 == strcasecmp( 'וויקיביבליאטעק_רעדן', $text ) ) return NS_PROJECT_TALK; + } + if( $wgSitename == 'װיקיװערטערבוך' ) { + if( 0 == strcasecmp( 'וויקיווערטערבוך', $text ) ) return NS_PROJECT; + if( 0 == strcasecmp( 'וויקיווערטערבוך_רעדן', $text ) ) return NS_PROJECT_TALK; + } + if( $wgSitename == 'װיקינײַעס' ) { + if( 0 == strcasecmp( 'וויקינייעס', $text ) ) return NS_PROJECT; + if( 0 == strcasecmp( 'וויקינייעס_רעדן', $text ) ) return NS_PROJECT_TALK; + } + if( 0 == strcasecmp( 'באזונדער', $text ) ) return NS_SPECIAL; + if( 0 == strcasecmp( 'באנוצער', $text ) ) return NS_USER; + if( 0 == strcasecmp( 'באנוצער_רעדן', $text ) ) return NS_USER_TALK; + if( 0 == strcasecmp( 'מעדיעוויקי', $text ) ) return NS_MEDIAWIKI; + if( 0 == strcasecmp( 'מעדיעוויקי_רעדן', $text ) ) return NS_MEDIAWIKI_TALK; + if( 0 == strcasecmp( 'קאטעגאריע', $text ) ) return NS_CATEGORY; + if( 0 == strcasecmp( 'קאטעגאריע_רעדן', $text ) ) return NS_CATEGORY_TALK; + return false; + } +} + +?> -- cgit v1.2.3-54-g00ecf