In order to support a new language, you will have to:<ol><li>Choose <b>2</b> characters for the language,<li>Provide translations,
<li>Provide a small "flag" image for the language selection, and
<li>update your directory structure.</ol>
<b>1. Choose 2 characters</b><br>
Each language is defined by 2 characters You can choose them arbitrarily, but it must be exactly 2 characters. It is advised to follow the standards for simpification.<br>
For example, let's add Italian as "it".<br><br>
<b>2. Provide translations</b><br>
In the file <code>settings.php</code>, many sentences are provided, such as<br>
<code>// language name:<br>
$CSE_LANG["en"] = "english";<br>
$CSE_LANG["fr"] = "franais";<br>
$CSE_LANG["de"] = "deutsch";</code><br>
To support gracefully a new language, you will need to add a line for each of those texts. For instance to add italian:<br>
<code>// language name:<br>
$CSE_LANG["en"] = "english";<br>
$CSE_LANG["fr"] = "franais";<br>
$CSE_LANG["de"] = "deutsch";<br>
$CSE_LANG["it"] = "italiano";</code><br><br>
<b>3. Provide a small picture</b><br>
Search on the web for a small representative flag, and store it under "/CSE_Display/imazes" with a file name equal to the language 2-char code and the extension .gif.<br>
For italian, <code>it.gif</code>.<br><br>
<b>4. Update directory structure</b><br>
Add a new folder with the same name as the language 2-char code in your home folder (where the file CSE_CMS.php resides).<br>
You can now add your content as you see fit.