Thanks for the suggestion but changing the language is / was not the problem. My problem was the result PAGE not the search RESULT itself to be returned in a given language.
I tried the php includes solution from this forum but this was simply too much for me and still left me with the problem of returning the right language.
Well as it turned out there is a much simpler solution to this problem. It may not be "elegant" but it works for me and should work for others too that run a multi language site and use the same page DESIGN for their result page. Here is what I did:
In the search form I included
<input type='hidden' name='lang' value='de'>
In the config.php file I replaced
$phpdig_language = "en";
with $phpdig_language = "$lang";
Also in the config (around line 355) I changed the default
//includes language file
if (is_file("$relative_ ........ en-language.php to my prefered "de" language.
Next I created a
$result['template_text']="".phpDigMsg('template_text').""; just before the $result['templates_links'] = " in the function_phpdig_form.php file and added:
'template_text' =>'here is whatever htmlcode you want',
into the $phpdig_mess = array of the de-language.php and the en-language.php file. Depending on the hidden line in the search box the results get displayed in either english or german whereas my admin panel remains in german no matter which search language I used before. Unfortunately I don't have any idea on how to return a completely different result page depending on the language used and / or the domain design if one phpdig script is used under different domains. The only solution is to install the script for every domain, customise for evey domain but use the same database as long as all domains are on the same server.
regards
Ulrich
|