From: Zheng Zhu Date: Fri, 17 Sep 2004 15:09:22 +0000 (+0000) Subject: Choose userLanguage from the list of language names from Names.php X-Git-Tag: 1.5.0alpha1~1986 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=0c523d41ed9d62135a235c94a6dadac0c8437806;p=lhc%2Fweb%2Fwiklou.git Choose userLanguage from the list of language names from Names.php --- diff --git a/includes/SpecialPreferences.php b/includes/SpecialPreferences.php index 2283a44d46..0c3b3a0280 100644 --- a/includes/SpecialPreferences.php +++ b/includes/SpecialPreferences.php @@ -5,6 +5,9 @@ * @subpackage SpecialPage */ +/* to get a list of languages in setting user's language preference */ +require_once("Names.php"); + /** * Entry point that create the "Preferences" object */ @@ -303,10 +306,13 @@ class PreferencesForm { /** * @access private */ + function mainPrefsForm( $err ) { global $wgUser, $wgOut, $wgLang, $wgUseDynamicDates, $wgValidSkinNames; global $wgAllowRealName, $wgImageLimits; - + + global $wgLanguageNames; + $wgOut->setPageTitle( wfMsg( 'preferences' ) ); $wgOut->setArticleRelated( false ); $wgOut->setRobotpolicy( 'noindex,nofollow' ); @@ -384,7 +390,13 @@ class PreferencesForm {
-
\n" ); +