Hi people,
As I needed a multi-language interface and because it seems eTicket uses only one language at a time (with lang.php), I added a simple workaround that doesn't interfere with the core. The patch uses Cookies. These are the steps to make it work :
1 : Rename the language files lang_en.php, lang_fr.php, lang_de.php, etc.
2 : Add this line to settings.php :
$languages = array("en", "fr");
This array should contains all your available language "codes".
3. Add/replace these lines in init.php (near line 66)
chdir($rootpath_dir);
if (isset($_GET['lang']) && in_array($_GET['lang'], $languages)) {
setcookie("ETICKET_lang", $_GET['lang'], time()+2678400);
$lang = $_GET['lang'];
} else {
if (!empty($_COOKIE['ETICKET_lang'])) {
$lang = $_COOKIE['ETICKET_lang'];
} else {
$lang = "en";
}
}
require_once ('lang_'.$lang.'.php'); // include the language file
// create tables array
4. Now, enter the site using this URL :
http://www.yoursite.com/etickets/index.php?lang=fr (or whatever language you want)Use the "lang=en" query once because the language is stored in a cookie after that.
TO THE eTICKET TEAM : I think it would be a good idea to make this feature official. I work a lot on multi-languages sites like a lot of web developpers and it would be really useful to offer everyone the eticket service in their own language. Thank you.