php language switch with joomfish

fulltilt

Joined: 2010-07-04
Posts: 5
Posted: Mon, 2010-07-05 12:35

I'm using G2 with joomla and now i would like to integrate a php if statement with GET parameter from joomfish (lang=en) ...
How does it work in G2 and what should i use in require parameter?

if($_GET['lang'] == "fr")
{
require('path/lang_fr.php');
}

Regards

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2010-07-05 13:06

Gallery can already handle different languages.
Install the Multi Language Module and head to gallery admin -> Language Settings
and have gallery Check Browser Preference

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2