Multi-language support

This commit is contained in:
bergware
2020-06-09 09:11:24 +02:00
parent 9a0e19684c
commit 8e40733c31
3 changed files with 7 additions and 7 deletions
@@ -15,6 +15,13 @@
libxml_use_internal_errors(true); # Suppress any warnings from xml errors.
$docroot = $docroot ?? $_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp';
// add translations
if (substr($_SERVER['REQUEST_URI'],0,7) != '/Docker') {
$_SERVER['REQUEST_URI'] = 'docker';
require_once "$docroot/webGui/include/Translations.php";
}
require_once "$docroot/plugins/dynamix.docker.manager/include/Helpers.php";
$dockerManPaths = [