From: Brion Vibber Date: Sun, 13 Jul 2003 23:19:56 +0000 (+0000) Subject: move '(Main)' from hardcoded string to language file X-Git-Tag: 1.1.0~387 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22statistiques_visites%22%2C%22%22%29%20.%20%22?a=commitdiff_plain;h=1e400c17934481a931f2c90f421d97af9a2a6357;p=lhc%2Fweb%2Fwiklou.git move '(Main)' from hardcoded string to language file --- diff --git a/includes/SearchEngine.php b/includes/SearchEngine.php index 8f6ce86a61..256e49b370 100644 --- a/includes/SearchEngine.php +++ b/includes/SearchEngine.php @@ -100,7 +100,7 @@ class SearchEngine { array_push( $this->namespacesToSearch, $i ); } $name = str_replace( "_", " ", $ns[$i] ); - if ( "" == $name ) { $name = "(Main)"; } + if ( "" == $name ) { $name = wfMsg( "blanknamespace" ); } if ( 0 != $i ) { $r1 .= " "; } $r1 .= " $1
$2 List redirects   Search for $3 $9", - +"blanknamespace" => "(Main)", # Preferences page #