نقاش القالب:Wikivar

purge rev-ID : 159703

scope

bugzilla:04672 – "sitename and ns:project in arabic Projects"

links

  1. template:Wikivar T
    1. q:sl:template:Wikivar T
  2. template:Wikivar/GRAMMAR
    1. q:sl:template:Wikivar/GRAMMAR
  3. w:en:List of grammatical cases
  4. user:Gangleri/tests/bugzilla
    1. b:sl:user:Gangleri/tests/bugzilla
    2. bugzilla:04685#c3 – "LanguageSl.php hardcodes project namespace as Wikipedija"
    3. bugzilla:03810 – "Translations for the namespaces in LanguageYi.php"
    4. bugzilla:04130 – "Change some inactive wikibooks Project namespaces to "Wikibooks""
    5. bugzilla:04282 – "Remove "Backwards compatibility hacks" from all LanguageXx.php files"
    6. bugzilla:04669 – "Project namespaces at ar: and fa: projects"
    7. bugzilla:04490 – "LanguageAr.php hardcodes Wikipedia project namespace"
    8. bugzilla:04672 – "sitename and ns:project in arabic Projects"
    9. dependency tree for bug 745
  5. meta:User talk:Gangleri#project namespaces at ar: and fa: projects
  6. CVS: languages/
    1. LanguageCs.php, markup
    2. LanguageFi.php, markup
    3. LanguageGa.php, markup
    4. LanguageRu.php, markup
    5. LanguageSk.php, markup
    6. LanguageSl.php, markup
  7. w:en:IRC: #mediawiki, #wiktionary
  8. meta:Help:Magic words#GRAMMAR:
    1. meta:special:Search/GRAMMAR
      notes:
      result depends on the search namespaces activated at meta:special:Preferences
      search={{grammar: does not provide the pages including "{{grammar:"


  1. w:en:Slovenian language
  2. w:sl:Slovinčina
    1. w:sl:Kategória:Slovenčina, w:sl:Kategória:Slovanské jazyky

  1. w:en:Arabic language | ‎لغة عربية
  2. w:en:Arabic grammar#Inflection | ‎نحو عربي
  3. w:en:category:Arabic language | ‎[[Arabic]] ‎

  1. special:Allmessages: b:, n:, q:, s:, wikt:, w:

to-do

old gNamespaceNames

from CVS /languages/ LanguageAr.php markup

/** This is an UTF-8 language  */
require_once('LanguageUtf8.php');

/* private */ $wgNamespaceNamesAr = array(
	NS_MEDIA            => 'ملف',
	NS_SPECIAL          => 'خاص',
	NS_MAIN             => '',
	NS_TALK             => 'نقاش',
	NS_USER             => 'مستخدم',
	NS_USER_TALK        => 'نقاش_المستخدم',
	NS_PROJECT          => 'ويكيبيديا',
	NS_PROJECT_TALK     => 'نقاش_ويكيبيديا',
	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    => 'نقاش_التصنيف'
) + $wgNamespaceNamesEn;
http://pastebin.com/521470
/* private */ $wgNamespaceNamesAr = array(
	NS_MEDIA            => 'ملف',
	NS_SPECIAL          => 'خاص',
	NS_MAIN             => '',
	NS_TALK             => 'نقاش',
	NS_USER             => 'مستخدم',
	NS_USER_TALK        => 'نقاش_المستخدم',
	NS_PROJECT          => 'ويكيبيديا',
	NS_PROJECT_TALK     => 'نقاش_ويكيبيديا',
	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    => 'نقاش_التصنيف'
) + $wgNamespaceNamesEn;

notes

  1. NS_PROJECT and NS_PROJECT_TALK should not be hardcoded
  2. spaces are not allowed in the names of the namespaces; underscores should be used instead
  3. some languages are using declension; their LanguageXx.php files are using both "function convertGrammar" and "function LanguageAr()" in order to change the forms for the SITENAME's when these are used in different grammatical cases in the MediaWiki messages

Do you need different forms of the SITENAME's in special:Allmessages?: yes / no

SITENAME's

meta:User talk:Gangleri#project namespaces at ar: and fa: projects

Wikipedia => 'ويكيبيديا' ‎
Wikibooks => 'ويكي_الكتب' ‎
Wikinews => 'ويكي_الأخبار' ‎
Wikiquote => 'ويكي_الاقتباس' ‎
Wikisource => 'ويكي_مصدر' ‎
Wiktionary => 'ويكاموس' ‎

Please correct and / or confirm here:

Inflection according to Arabic grammar

w:en:declension w:en:Arabic grammar#Inflection

  1. nominative => 'Arabic' # ‎
  2. genitive => 'Arabic' # ‎
  3. accusative => 'Arabic' # ‎
  4. ? vocative => 'Arabic' # ‎

Please translate the lines from above!

NS_PROJECT and NS_PROJECT_TALK

variant without declension

	NS_PROJECT => $wgMetaNamespace,
	NS_PROJECT_TALK => $wgMetaNamespace . '_Arabic',
	NS_PROJECT => $wgMetaNamespace,
	NS_PROJECT_TALK => 'Arabic_' . $wgMetaNamespace,
	NS_PROJECT => $wgMetaNamespace,
	NS_PROJECT_TALK => 'Arabic_XX' . $wgMetaNamespace,
	NS_PROJECT => $wgMetaNamespace,
	NS_PROJECT_TALK => 'Arabic_' . $wgMetaNamespace . '_Arabic',
	NS_PROJECT => $wgMetaNamespace,
	NS_PROJECT_TALK => 'Arabic_XX' . $wgMetaNamespace . 'YY_Arabic',

Please choose only one for all projects, modify it and remove the obsolete ones!‎

Thanks chaos for your answer! I have seen that
_ال
‎(_ال) is used at / before other namespaces.‎
I assume that one should use

	NS_PROJECT => $wgMetaNamespace,
	NS_PROJECT_TALK => 'نقاش' . '_ال' . $wgMetaNamespace,

Please correct and / or confirm. Best regards
Gangleri ‮|‬ Th ‮|‬ T ‮|‬ 23:55, 27 يناير 2006 (UTC)

Please let me / us know if there is no common "formula" for all projects. Best regards

Gangleri ‮|‬ Th ‮|‬ T ‮|‬ 23:58, 27 يناير 2006 (UTC)


I Think there is no need for (ال) after the word (نقاش talk ) :

	NS_PROJECT => $wgMetaNamespace,
	NS_PROJECT_TALK => 'نقاش' . '_' . $wgMetaNamespace,

--Chaos 23:08, 30 يناير 2006 (UTC)

variant with declension

function convertGrammar

function LanguageAr

wait / go ahead

  • Please go ahead! Gangleri ‮|‬ Th ‮|‬ T ‮|‬ 23:47, 24 يناير 2006 (UTC)