Add 2 @since and add documentation for PageContentLanguage hook
authorRobin Pepermans <robin@users.mediawiki.org>
Thu, 11 Aug 2011 14:52:57 +0000 (14:52 +0000)
committerRobin Pepermans <robin@users.mediawiki.org>
Thu, 11 Aug 2011 14:52:57 +0000 (14:52 +0000)
docs/hooks.txt
includes/Title.php
languages/Language.php

index 12741ea..7300833 100644 (file)
@@ -1290,6 +1290,12 @@ $categories: associative array, keys are category names, values are category
 $links: array, intended to hold the result. Must be an associative array with
        category types as keys and arrays of HTML links as values.
 
+'PageContentLanguage': allows changing the language in which the content of
+a page is written. Defaults to the wiki content language ($wgContLang).
+$title: Title object
+&$pageLang: the page content language (either an object or a language code)
+$wgLang: the user language
+
 'PageHistoryBeforeList': When a history page list is about to be constructed.
 $article: the article that the history is loading for
 
index a6a9d7e..405d420 100644 (file)
@@ -4277,6 +4277,7 @@ class Title {
         * Defaults to $wgContLang, but in certain cases it can be e.g.
         * $wgLang (such as special pages, which are in the user language).
         *
+        * @since 1.18
         * @return object Language
         */
        public function getPageLanguage() {
index 55a2ee7..a34a558 100644 (file)
@@ -218,6 +218,7 @@ class Language {
         *
         * @param $code string
         *
+        * @since 1.18
         * @return bool
         */
        public static function isValidBuiltInCode( $code ) {