Search module and Uploads language files

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
moonie
Forum Members
Forum Members
Posts: 81
Joined: Tue Feb 13, 2007 3:08 pm

Search module and Uploads language files

Post 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
Post Reply

Return to “CMSMS Core”