/**************************************************************************************************
|
| iDocScript - Document Sharing Script
| http://www.idocscript.com
| webmaster@idocscript.com
|
|**************************************************************************************************
|
| By using this software you agree that you have read and acknowledged our End-User License 
| Agreement available at http://www.idocscript.com/eula.html and to be bound by it.
|
| Copyright (c) iDocScript.com. All rights reserved.
|**************************************************************************************************/


These are the steps for installing a new language, we will be doing an example for Italian.

1. Convert one of the provided languages in the include/lang folder (english, french or spanish) into Italian, naming the newly converted language italian.php


2. Open include/config.php

Find:
elseif ($_REQUEST['language'] == "french")
{
	$_SESSION['language'] = "french";
}

Add Above:
elseif ($_REQUEST['language'] == "italian")
{
	$_SESSION['language'] = "italian";
}


Find:
elseif ($_SESSION['language'] == "french")
{
	include("lang/french.php");
}

Add Above:
elseif ($_SESSION['language'] == "italian")
{
	include("lang/italian.php");
}


3. Open themes/default/header.tpl

Find:
<a href="#" onclick="document.langselectes.submit();" style="float:right; margin-right:5px;"><img src="{$imageurl}/es.png" /></a>

Add After:
<a href="#" onclick="document.langselectit.submit();" style="float:right; margin-right:5px;"><img src="{$imageurl}/it.png" /></a>


Find:
<form name="langselectfr" id="langselectfr" method="post" style="padding:0; margin:0">
<input type="hidden" name="language" id="language" value="french" />
</form>

Add After:
<form name="langselectit" id="langselectit" method="post" style="padding:0; margin:0">
<input type="hidden" name="language" id="language" value="italian" />
</form>



4. You will need to get a small png image of the italian flag, name it it.png, and upload it to the images folder.


The Italian language would now be installed.