Page 1 of 1

Search module and Uploads language files

Posted: Wed Nov 24, 2010 3:50 pm
by moonie
Hello everyone

I am currently working on a multilingual site which I've realized with 2 different tree structures in the content (german page under the "DE" tree, french under "FR"). My only problem now is the Search module in combination with the Uploads module when it comes to the language settings. There is a friendly name defined in Uploads for both languages:

$lang['friendlyname'] = 'Dateien (Uploads-Modul)'; for DE
$lang['friendlyname'] = 'Gestion de Fichiers (Uploads)'; for FR

Logically, the Search module grabs the friendly name of the language I have defined to be the default frontend language, german in my case. So while on the French part of the page, search results are shown with that german phrase "Dateien (Uploads-Modul) - nameofmyfile.pdf"

Is there a way I could force the Search results to grab the french friendlyname if the results are shown on a specific page alias ("recherche" in my case), and leave the german friendlyname for every other alias? Maybe some if-statement I could paste in my template?

Thanks for your help