Oups if forget a file this is the code of /include/client/header.inc.php
this is the code for the top the client page. I added a list box with the language available on the language directory. the value attribute correspond to the name of the language file without the php extension. You must also add the javascript function at the top of the file.
<?php
$title=($cfg && is_object($cfg))?$cfg->getTitle():'osTicket :: '.I_C_H_TITLE;
?>
<!<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title><?=Format:($title)?></title>
<link rel="stylesheet" href="./styles/main.css" media="screen">
<link rel="stylesheet" href="./styles/colors.css" media="screen">
</head>
<Script language="JavaScript">
Added by Yannick Auclair for multilangual version
function goto(form)
{
var index=form.select.selectedIndex
if (form.select.options.value != "0")
{
//alert("<?php echo(ROOT_PATH.'setlanguage.php?location='.THISPAGE);?>&language=" + form.select.options.value);
location.href = "<?php echo(ROOT_PATH.'setlanguage.php?location='.THISPAGE);?>&language=" + form.select.options.value;
}
}
//
</SCRIPT>
<body>
<div id="container">
<div id="header">
<a id="logo" href="index.php" title="Support Center"><img src="./images/logo2.jpg" border=0 alt="Support Center"></a>
<p><span><?php echo(I_C_H_SUPPORT_TICKET);?></span> <?php echo(I_C_H_SYSTEM);?></p>
</div>
<ul id="nav">
<?
if(is_object($thisclient) && $thisclient->isValid()) {?>
<li><a class="log_out" href="logout.php"><?php echo(I_C_H_LOGOUT);?></a></li>
<li><a class="my_tickets" href="view.php"><?php echo(I_C_H_MY_TICKET);?></a></li>
<?}else {?>
<li><a class="ticket_status" href="view.php"><?php echo(I_C_H_TICKET_STATUS);?></a></li>
<?}?>
<li><a class="new_ticket" href="open.php"><?php echo(I_C_H_NEW_TICKET);?></a></li>
<li><a class="home" href="index.php"><?php echo(I_C_H_HOME);?></a></li>
<li>
Added by Yannick Auclair for multilangual version//
<FORM NAME="form1"><?php echo(I_C_H_LANGUAGE);?>
<select NAME="select" ONCHANGE="javascript(this.form)">
<OPTION VALUE="">Choose a language</option>
<option value="english">English</option>
<option value="francais">Francais</option>
</select>
</form>
Added by Yannick Auclair for multilangual version//
</li>
</ul>
<div id="content">