r5248 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r5247‎ | r5248 | r5249 >
Date:04:43, 17 September 2004
Author:zhengzhu
Status:old
Tags:
Comment:
Removed debug message from the conversion code
Modified paths:
  • /trunk/phase3/languages/LanguageZh.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/LanguageZh.php
@@ -37,7 +37,7 @@
3838 array_shift($zh);
3939 $l = array_shift($zh);
4040 if($l != NULL) {
41 - $this->mZhLanguageCode = substr($l,0,2);
 41+ $this->mZhLanguageCode = strtolower(substr($l,0,2));
4242 }
4343
4444 return $this->mZhLanguageCode;
@@ -60,11 +60,10 @@
6161
6262 // no conversion if redirecting
6363 if(substr($text,0,9) == "#REDIRECT") {
64 - return "Debug: is a redirect, no conversion<br>".$text;
 64+ return $text;
6565 }
6666 // determine the preferred language from the request header
6767 $tolang = $this->getPreferredLanguage();
68 - $debug = "Debug: Detected language preference: ".$tolang."<br>\n";
6968
7069 $ltext = explode("-{", $text);
7170 $lfirst = array_shift($ltext);
@@ -97,7 +96,7 @@
9897 $text = $text.$this->simp2trad($a{1});
9998 }
10099 }
101 - return $debug.$text;
 100+ return $text;
102101 }
103102
104103

Status & tagging log