Add translation variables to new start page

This commit is contained in:
Joshua Ramon Enslin 2019-08-28 15:44:32 +02:00 committed by Stefan Rohde-Enslin
parent 131abe97b5
commit 8e5bf71774

18
new.php
View File

@ -30,6 +30,8 @@ else if (!isset($_SESSION['lang'])) {
} }
$lang = $_SESSION['lang']; $lang = $_SESSION['lang'];
require __DIR__ . "/translation-importer/$lang/csvxml-overview.php";
$toInject = ' $toInject = '
<link rel="stylesheet" type="text/css" href="assets/css/editMenu.css" /> <link rel="stylesheet" type="text/css" href="assets/css/editMenu.css" />
<script src="assets/js/newToolTip.js" type="text/javascript" defer></script> <script src="assets/js/newToolTip.js" type="text/javascript" defer></script>
@ -41,21 +43,21 @@ echo '
<div class="uploader"> <div class="uploader">
<form enctype="multipart/form-data" action="upload.php" method="POST"> <form enctype="multipart/form-data" action="upload.php" method="POST">
<label for="fileToUpload">Please select a CSV-file to create xml-files</label> <label for="fileToUpload">' . $csvxml_overview['select_csv_file_for_upload'] . '</label>
<input name="uploaded" type="file" id="fileToUpload" required /> <input name="uploaded" type="file" id="fileToUpload" required />
<button type="submit">Upload</button> <button type="submit">' . $csvxml_overview['upload'] . '</button>
</form> </form>
</div> </div>
<div> <div>
<h2>Currently approved tags (column names) for md:import</h2> <h2>' . $csvxml_overview['currently_approved_tags'] . '</h2>
<div class="options"> <div class="options">
<a href="csv.php" class="buttonLike">Download CSV template with all fields</a> <a href="csv.php" class="buttonLike">' . $csvxml_overview['download_csv_all'] . '</a>
<a class="buttonLike invisible" id="csvBySelection">Download CSV template based on selection</a> <a class="buttonLike invisible" id="csvBySelection">' . $csvxml_overview['download_csv_by_selection'] . '</a>
<br /> <br />
<a class="buttonLike" id="selectRequired">Select required fields</a> <a class="buttonLike" id="selectRequired">' . $csvxml_overview['select_required_fields'] . '</a>
<a class="buttonLike" id="selectAll">Select all fields</a> <a class="buttonLike" id="selectAll">' . $csvxml_overview['select_all_fields'] . '</a>
<a class="buttonLike invisible" id="unsetSelection">Unset selection</a> <a class="buttonLike invisible" id="unsetSelection">' . $csvxml_overview['unset_selection'] . '</a>
</div> </div>
'; ';