- function getNsText( $index ) {
- global $wgNamespaceNamesCy;
- return $wgNamespaceNamesCy[$index];
- }
-
- function getNsIndex( $text ) {
- global $wgNamespaceNamesCy;
-
- foreach ( $wgNamespaceNamesCy as $i => $n ) {
- if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
- }
- # Fallback to English names for compatibility
- return Language::getNsIndex( $text );
- }
-