Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

LanguageTlh.php

Go to the documentation of this file.
00001 <?php 00002 00003 # Hooray for Klingon, the most controversial language addition to date 00004 00005 require_once( "LanguageUtf8.php" ); 00006 00007 if ( $wgMetaNamespace == "Wikipedia" ) { 00008 $wgMetaNamespace = "wIqIpe'DIya"; 00009 } 00010 00011 /* private */ $wgNamespaceNamesTlh = array( 00012 NS_MEDIA => "Doch", 00013 NS_SPECIAL => "le'", 00014 NS_MAIN => "", 00015 NS_TALK => "ja'chuq", 00016 NS_USER => "lo'wI'", 00017 NS_USER_TALK => "lo'wI'_ja'chuq", 00018 NS_WIKIPEDIA => $wgMetaNamespace, 00019 NS_WIKIPEDIA_TALK => $wgMetaNamespace . "_ja'chuq", 00020 NS_IMAGE => "nagh_beQ", 00021 NS_IMAGE_TALK => "nagh_beQ_ja'chuq", 00022 NS_MEDIAWIKI => "MediaWiki", 00023 NS_MEDIAWIKI_TALK => "MediaWiki_ja'chuq", 00024 NS_TEMPLATE => "chen'ay'", 00025 NS_TEMPLATE_TALK => "chen'ay'_ja'chuq", 00026 NS_HELP => "QaH", 00027 NS_HELP_TALK => "QaH_ja'chuq", 00028 NS_CATEGORY => "Segh", 00029 NS_CATEGORY_TALK => "Segh_ja'chuq" 00030 ); 00031 00032 class LanguageTlh extends LanguageUtf8 00033 { 00034 function getNamespaces() { 00035 global $wgNamespaceNamesTlh; 00036 return $wgNamespaceNamesTlh; 00037 } 00038 00039 function getNsText( $index ) { 00040 global $wgNamespaceNamesTlh; 00041 return $wgNamespaceNamesTlh[$index]; 00042 } 00043 00044 function getNsIndex( $text ) { 00045 global $wgNamespaceNamesTlh; 00046 00047 foreach ( $wgNamespaceNamesTlh as $i => $n ) { 00048 if ( 0 == strcasecmp( $n, $text ) ) { return $i; } 00049 } 00050 return false; 00051 } 00052 } 00053 00054 ?> 00055 00056

Generated on Tue Jun 29 23:40:05 2004 for Mediawiki by doxygen 1.3.7