From 0c523d41ed9d62135a235c94a6dadac0c8437806 Mon Sep 17 00:00:00 2001 From: Zheng Zhu Date: Fri, 17 Sep 2004 15:09:22 +0000 Subject: [PATCH] Choose userLanguage from the list of language names from Names.php --- includes/SpecialPreferences.php | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) 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" ); +