Multi-language support

This commit is contained in:
bergware
2020-03-13 07:59:24 +01:00
parent c4398c2724
commit d9ab82e15f
6 changed files with 39 additions and 20 deletions
@@ -12,12 +12,16 @@
?>
<?
$docroot = $docroot ?? $_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp';
// add translations
$_SERVER['REQUEST_URI'] = 'docker';
require_once "$docroot/webGui/include/Translations.php";
require_once "$docroot/webGui/include/Helpers.php";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Container Size</title>
<title><?=_('Container Size')?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="robots" content="noindex, nofollow">
@@ -55,6 +59,6 @@ $(function(){
<body style='margin:20px'>
<div class="spinner"></div>
<pre id="data"></pre>
<div class="button"><input type="button" value="Done" onclick="top.Shadowbox.close()"></div>
<div class="button"><input type="button" value="<?=_('Done')?>" onclick="top.Shadowbox.close()"></div>
</body>
</html>