r9130 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r9129‎ | r9130 | r9131 >
Date:05:58, 22 May 2005
Author:eloquence
Status:old
Tags:
Comment:
add $wgMetaNamespaceTalk, primarily for Serbian, where talk pages
are grammatically different from subject pages
Modified paths:
  • /trunk/phase3/includes/DefaultSettings.php (modified) (history)
  • /trunk/phase3/languages/LanguageSr.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/DefaultSettings.php
@@ -26,6 +26,7 @@
2727 /** Will be same as you set @see $wgSitename */
2828 $wgMetaNamespace = FALSE;
2929
 30+
3031 /** URL of the server. It will be automaticly build including https mode */
3132 $wgServer = '';
3233
@@ -536,6 +537,15 @@
537538 $wgZhdaemonHost="localhost";
538539 $wgZhdaemonPort=2004;
539540
 541+/** Normally you can ignore this and it will be something
 542+ like $wgMetaNamespace . "_talk". In some languages, you
 543+ may want to set this manually for grammatical reasons.
 544+ It is currently only respected by those languages
 545+ where it might be relevant and where no automatic
 546+ grammar converter exists.
 547+*/
 548+$wgMetaNamespaceTalk = false;
 549+
540550 # Miscellaneous configuration settings
541551 #
542552
Index: trunk/phase3/languages/LanguageSr.php
@@ -21,7 +21,7 @@
2222 2 => "Корисник",
2323 3 => "Разговор_са_корисником",
2424 4 => $wgMetaNamespace,
25 - 5 => "Разговор_о_".$wgMetaNamespace,
 25+ 5 => ($wgMetaNamespaceTalk ? $wgMetaNamespaceTalk : "Разговор_о_".$wgMetaNamespace ),
2626 6 => "Слика",
2727 7 => "Разговор_о_слици",
2828 8 => "МедијаВики",

Status & tagging log