װיקיװערטערבוך:namespaces
מראה
(אַריבערגעפֿירט פון װיקיװערטערבוך:Namespaces)
prliminary
[ענדערן]→ bugzilla:04960 – "Add additional namespaces variants to projects in Yiddish"
- Contributors have askes multiple times to be able to use beside the actual namespaces also other variants without
precombined characters,tsvey vovn, vov-yud and niqqud. See w:project:געמיינדע#namespaces.
- note: MediaWiki automatically converts "precombined characters" during normalisation.
- This patch supports the sitenames for Wikipdia, Wikisource and Wiktionary in Yiddish.
- Neither sitenames for Wikibooks, Wikinews, Wikiquote are nor custom namespaces is handeled here; only common namespaces.
other links
[ענדערן]- oldwikisource:Wikisource:Language domain requests#yi.wikisource.org (Yiddish יידיש )
- bugzilla:04786 – "Create Yiddish Wikisource"
- meta:Wikinews/Start a new edition#Yiddish (יִידיש), meta:Approved requests for new languages, meta:New language pre-launch
- bugzilla:02399 – "Unicode normalization interferes with Hebrew and Arabic with vowels"
- bugzilla:03885 – "Title normalisation"
- bugzilla:01527 – "*first* perform Unicode normalisation and check for existence of pages *after* the normalisation"
- duplicate: bugzilla:03860 – "Links generated with precombined characters show red despite the fact that the normalised links exist"
function getNsIndex
[ענדערן]starting from CVS LanguageFr.php
for CVS LanguageYi.php
function getNsIndex( $text ) { global $wgNamespaceNamesYi, $wgSitename; foreach ( $wgNamespaceNamesYi 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( 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; }
test links
[ענדערן]The following should not be red if the patch is applied to HEAD:
- וויקיווערטערבוך:namespaces == project:namespaces
- וויקיווערטערבוך_רעדן:namespaces == project talk:namespaces
- באזונדער:Version == special:Version
- באנוצער:Gangleri == user:Gangleri
- באנוצער רעדן:Gangleri == user talk:Gangleri
- מעדיעוויקי:Sitenotice == MediaWiki:Sitenotice
- מעדיעוויקי רעדן:Sitenotice == MediaWiki talk:Sitenotice
- קאטעגאריע:bugzilla == category:bugzilla
- קאטעגאריע רעדן:bugzilla == category talk:bugzilla
test links at sister projects:
- verifying existens of such pages with prefixindex
rtl test links
[ענדערן]- וויקיווערטערבוך:namespaces == project:namespaces
- וויקיווערטערבוך_רעדן:namespaces == project talk:namespaces
- באזונדער:Version == special:Version
- באנוצער:Gangleri == user:Gangleri
- באנוצער רעדן:Gangleri == user talk:Gangleri
- מעדיעוויקי:Sitenotice == MediaWiki:Sitenotice
- מעדיעוויקי רעדן:Sitenotice == MediaWiki talk:Sitenotice
- קאטעגאריע:bugzilla == category:bugzilla
- קאטעגאריע רעדן:bugzilla == category talk:bugzilla
Gangleri | Th | T 01:23, 15 פֿעברואַר 2006 (UTC)
comments
[ענדערן]write rtl
[ענדערן]...
write ltr
[ענדערן]...