mirror of
https://github.com/unraid/webgui.git
synced 2026-04-27 21:40:20 -05:00
Multi-language support
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user