From: Niklas Laxström Date: Thu, 25 May 2006 14:12:32 +0000 (+0000) Subject: * Added $wgGrammarForms global. New forms can be added without modifying the code... X-Git-Tag: 1.31.0-rc.0~57038 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/?a=commitdiff_plain;h=10e8364b875e1ff501376631dd301a7d998cb55c;p=lhc%2Fweb%2Fwiklou.git * Added $wgGrammarForms global. New forms can be added without modifying the code, and site specific exceptions can be moved away from LanguageXx.php. * Some whitespace --- diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 7037288364..e2c59bfe8b 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -559,17 +559,24 @@ $wgCachedMessageArrays = false; /** Site language code, should be one of ./languages/Language(.*).php */ $wgLanguageCode = 'en'; +/** + * Some languages need different word forms, usually for different cases. + * Used in Language::convertGrammar(). + */ +$wgGrammarForms = array(); +#$wgGrammarForms['genitive']['car'] = 'car\'s'; + /** Treat language links as magic connectors, not inline links */ -$wgInterwikiMagic = true; +$wgInterwikiMagic = true; /** Hide interlanguage links from the sidebar */ $wgHideInterlanguageLinks = false; /** We speak UTF-8 all the time now, unless some oddities happen */ -$wgInputEncoding = 'UTF-8'; -$wgOutputEncoding = 'UTF-8'; -$wgEditEncoding = ''; +$wgInputEncoding = 'UTF-8'; +$wgOutputEncoding = 'UTF-8'; +$wgEditEncoding = ''; # Set this to eg 'ISO-8859-1' to perform character set # conversion when loading old revisions not marked with @@ -1239,15 +1246,15 @@ $wgPasswordSalt = true; */ $wgNamespacesWithSubpages = array( NS_TALK => true, - NS_USER => true, - NS_USER_TALK => true, - NS_PROJECT_TALK => true, - NS_IMAGE_TALK => true, - NS_MEDIAWIKI_TALK => true, - NS_TEMPLATE_TALK => true, - NS_HELP_TALK => true, - NS_CATEGORY_TALK => true - ); + NS_USER => true, + NS_USER_TALK => true, + NS_PROJECT_TALK => true, + NS_IMAGE_TALK => true, + NS_MEDIAWIKI_TALK => true, + NS_TEMPLATE_TALK => true, + NS_HELP_TALK => true, + NS_CATEGORY_TALK => true +); $wgNamespacesToBeSearchedDefault = array( NS_MAIN => true,