Topic: editing problems
Hi out there, i have found a nice Mod (Did you mean), it is a short Mod for the Boardserach. I use the German Languagepack, but in this Mod the Language German is not available. Everytime there is an English output.
What must I do/add, that the Mod accept the Users Language (English/German)?
Original:
}
if( empty( $suggest ) ) message($lang_search['No hits']);
$_GET['keywords'] = strtolower(trim($_GET['keywords']));
$suggestion = str_replace( array_keys($bold), array_values($bold), $_GET['keywords'] );
$_GET['keywords'] = str_replace( array_keys($suggest), array_values($suggest), $_GET['keywords'] );
$q = '';
foreach( $_GET as $k => $v )
$q .= $k.'='.$v.'&';
message( 'Did you mean: <a href="search.php?'.$q.'suggest=1">'.$suggestion.'</a> ?</p><p>'.$lang_search['No hits'] );
}
The Did you mean at the end I mean.
I've tried that:
}
if( empty( $suggest ) ) message($lang_search['No hits']);
$_GET['keywords'] = strtolower(trim($_GET['keywords']));
$suggestion = str_replace( array_keys($bold), array_values($bold), $_GET['keywords'] );
$_GET['keywords'] = str_replace( array_keys($suggest), array_values($suggest), $_GET['keywords'] );
$q = '';
foreach( $_GET as $k => $v )
$q .= $k.'='.$v.'&';
message( '<?echo $lang_common['did_you_mean']?>: <a href="search.php?'.$q.'suggest=1">'.$suggestion.'</a> ?</p><p>'.$lang_search['No hits'] );
}
What I've made wrong?
Visit My PunBB Forum