slightly more informative error message
authorZheng Zhu <zhengzhu@users.mediawiki.org>
Mon, 29 Nov 2004 15:32:42 +0000 (15:32 +0000)
committerZheng Zhu <zhengzhu@users.mediawiki.org>
Mon, 29 Nov 2004 15:32:42 +0000 (15:32 +0000)
includes/SpecialAllmessages.php
languages/Language.php

index 2001c41..1fe5408 100644 (file)
@@ -15,7 +15,7 @@ function wfSpecialAllmessages() {
 
        if($wgLanguageCode != $wgContLanguageCode &&
                !in_array($wgLanguageCode, $wgContLang->getVariants())) {
-               $err = wfMsg('allmessagesnotsupportedUI');
+               $err = wfMsg('allmessagesnotsupportedUI', $wgLanguageCode);
                $wgOut->addHTML( $err );
                return;
        }
index d829767..f43024f 100644 (file)
@@ -1443,7 +1443,7 @@ article [[Train]].
 
 'allmessages'  => 'All system messages',
 'allmessagestext'      => 'This is a list of all system messages available in the MediaWiki: namespace.',
-'allmessagesnotsupportedUI' => 'Your current interface language is not supported by Special:AllMessages at this site.',
+'allmessagesnotsupportedUI' => 'Your current interface language <b>$1</b> is not supported by Special:AllMessages at this site.',
 'allmessagesnotsupportedDB' => 'Special:AllMessages not supported because wgUseDatabaseMessages is off.',
 
 # Thumbnails