Creates the needed tables
Relies on /shared/sql
Change the paramaters below, until STOP CHANGING */
/* List of languages. */
$possibleLanguages = array(array("keycode" => "EN", "name_def" => "English", "name_lang" => "English", "default_lang" => true), array("keycode" => "ES", "name_def" => "Spanish", "name_lang" => "Español"), array("keycode" => "ZH-S", "name_def" => "Chinese (Simplified)", "name_lang" => "简化字"), array("keycode" => "ZH-T", "name_def" => "Chinese (Traditional)", "name_lang" => "正體字/繁體字"), array("keycode" => "FR", "name_def" => "French", "name_lang" => "Français"), array("keycode" => "PT", "name_def" => "Portuguese", "name_lang" => "Portugués"), array("keycode" => "VI", "name_def" => "Vietnamese", "name_lang" => "tiếng Việt"), array("keycode" => "HC", "name_def" => "Haitian Creole", "name_lang" => "kreyòl"), array("keycode" => "CVC", "name_def" => "Cape Verdean Creole", "name_lang" => "kabuverdianu"));
/* STOP CHANGING */
$root = realpath($_SERVER["DOCUMENT_ROOT"]);
require_once "{$root}/shared/header.php";
$debug = true;
echo printHeader();
echo "<div class='container'>";
if ($debug) {
    echo "<h2>Languages</h2>";
}
require_once "../tools/translations/class/LanguageSet.class.php";
$langObj = new LanguageSet();
$langq = new SQLQuery($langObj->table);
$langq->international = true;
$langq->debug = $debug;
$langq->reset_table($possibleLanguages, array("keycode"));
if ($debug) {
    $langObj->testPrint();
}
if ($debug) {
    echo "<h2>Text Elements</h2>";
}
require_once "../tools/translations/class/SurveyTextElementSet.class.php";
$textObj = new SurveyTextElementSet();
$textObj->debug = $debug;
$textObj->create();
if ($debug) {
<?php

$root = realpath($_SERVER["DOCUMENT_ROOT"]);
require_once "{$root}/shared/header.php";
require_once "class/LanguageSet.class.php";
$submitted = filter_input(INPUT_POST, 'submitted');
$deleted = filter_input(INPUT_POST, 'deleted');
$records = new LanguageSet();
$records->debug == true;
echo printHeader();
echo "<div class='container'>";
echo "<a href='index.php' class='backlink'><< Translations Menu</a>";
if ($submitted == true) {
    $record = $records->makeRecord();
    $record->submit();
}
if ($deleted == true) {
    $record = $records->makeRecord();
    $record->delete();
}
echo $records->panelhtml();