summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lang/de/templates/eventlog/_page.json6
-rw-r--r--lang/de/templates/main-menu.json3
-rw-r--r--lang/en/templates/eventlog/_page.json6
-rw-r--r--lang/en/templates/main-menu.json3
-rw-r--r--lang/pt/templates/eventlog/_page.json6
-rw-r--r--lang/pt/templates/main-menu.json3
-rw-r--r--modules/translation.inc.php1
-rw-r--r--templates/main-menu.html10
8 files changed, 36 insertions, 2 deletions
diff --git a/lang/de/templates/eventlog/_page.json b/lang/de/templates/eventlog/_page.json
new file mode 100644
index 00000000..b1a292e6
--- /dev/null
+++ b/lang/de/templates/eventlog/_page.json
@@ -0,0 +1,6 @@
+{
+ "lang_details": "Details",
+ "lang_event": "Ereignis",
+ "lang_eventLog": "Ereignisprotokoll",
+ "lang_when": "Wann"
+} \ No newline at end of file
diff --git a/lang/de/templates/main-menu.json b/lang/de/templates/main-menu.json
index b61cc1bb..a681ef02 100644
--- a/lang/de/templates/main-menu.json
+++ b/lang/de/templates/main-menu.json
@@ -4,13 +4,16 @@
"lang_clientLog": "Client Log",
"lang_configurationBasic": "Grundkonfiguration",
"lang_configurationVariables": "KonfigurationsVariablen",
+ "lang_eventLog": "Server Log",
"lang_language": "Sprachen",
"lang_localization": "Lokalisierung",
"lang_login": "Anmelden",
"lang_logout": "Abmelden",
"lang_news": "News",
"lang_server": "Server",
+ "lang_serverStatus": "Server Status",
"lang_settings": "Einstellungen",
+ "lang_status": "Status",
"lang_vmLocation": "VM Speicherort",
"lang_warning": "Warnung"
} \ No newline at end of file
diff --git a/lang/en/templates/eventlog/_page.json b/lang/en/templates/eventlog/_page.json
new file mode 100644
index 00000000..21ec64ea
--- /dev/null
+++ b/lang/en/templates/eventlog/_page.json
@@ -0,0 +1,6 @@
+{
+ "lang_details": "Details",
+ "lang_event": "Event",
+ "lang_eventLog": "Event log",
+ "lang_when": "When"
+} \ No newline at end of file
diff --git a/lang/en/templates/main-menu.json b/lang/en/templates/main-menu.json
index 16e83084..493d8d80 100644
--- a/lang/en/templates/main-menu.json
+++ b/lang/en/templates/main-menu.json
@@ -4,13 +4,16 @@
"lang_clientLog": "Client Log",
"lang_configurationBasic": "Basic Configuration",
"lang_configurationVariables": "Configuration Variables",
+ "lang_eventLog": "Server Log",
"lang_language": "Language",
"lang_localization": "Localization",
"lang_login": "Login",
"lang_logout": "Logout",
"lang_news": "News",
"lang_server": "Server",
+ "lang_serverStatus": "Server status",
"lang_settings": "Settings",
+ "lang_status": "Status",
"lang_vmLocation": "VM Location",
"lang_warning": "Warning"
} \ No newline at end of file
diff --git a/lang/pt/templates/eventlog/_page.json b/lang/pt/templates/eventlog/_page.json
new file mode 100644
index 00000000..2990bf21
--- /dev/null
+++ b/lang/pt/templates/eventlog/_page.json
@@ -0,0 +1,6 @@
+{
+ "lang_details": "Detalhes",
+ "lang_event": "Evento",
+ "lang_eventLog": "Log dos Eventos",
+ "lang_when": "Quando"
+} \ No newline at end of file
diff --git a/lang/pt/templates/main-menu.json b/lang/pt/templates/main-menu.json
index 7c0b13d6..32cc418d 100644
--- a/lang/pt/templates/main-menu.json
+++ b/lang/pt/templates/main-menu.json
@@ -4,12 +4,15 @@
"lang_clientLog": "Log dos Clientes",
"lang_configurationBasic": "Comfigura\u00e7\u00e3o B\u00e1sica",
"lang_configurationVariables": "Vari\u00e1veis de Configura\u00e7\u00e3o",
+ "lang_eventLog": "Log dos Serveros",
"lang_language": "L\u00edngua",
"lang_localization": "Localiza\u00e7\u00e3o",
"lang_login": "Entrar",
"lang_logout": "Sair",
"lang_news": "Novidades",
"lang_server": "Servidor",
+ "lang_serverStatus": "Server status",
"lang_settings": "Op\u00e7\u00f5es",
+ "lang_status": "Status",
"lang_vmLocation": "Localiza\u00e7\u00e3o da VM"
} \ No newline at end of file
diff --git a/modules/translation.inc.php b/modules/translation.inc.php
index 594c65dc..c10facb2 100644
--- a/modules/translation.inc.php
+++ b/modules/translation.inc.php
@@ -407,6 +407,7 @@ class Page_Translation extends Page
Message::addError('invalid-path');
Util::redirect('?do=Translation');
}
+ @mkdir(dirname($path), 0755, true);
ksort($array); // Sort by key, so the diff on the output is cleaner
$json = up_json_encode($array, JSON_PRETTY_PRINT); // Also for better diffability of the json files, we pretty print
//exits the function in case the action was unsuccessful
diff --git a/templates/main-menu.html b/templates/main-menu.html
index 9cc053b9..401c4dc2 100644
--- a/templates/main-menu.html
+++ b/templates/main-menu.html
@@ -11,7 +11,6 @@
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
- <li><a href="?do=SysLog">{{lang_clientLog}}</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{{lang_settings}}<b class="caret"></b></a>
<ul class="dropdown-menu">
@@ -27,7 +26,14 @@
</ul>
</li>
<li><a href="?do=News">{{lang_news}}</a></li>
- <li><a href="?do=SystemStatus">Status</a></li>
+ <li class="dropdown">
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{lang_status}}<b class="caret"></b></a>
+ <ul class="dropdown-menu">
+ <li><a href="?do=SystemStatus">{{lang_serverStatus}}</a></li>
+ <li><a href="?do=SysLog">{{lang_clientLog}}</a></li>
+ <li><a href="?do=EventLog">{{lang_eventLog}}</a></li>
+ </ul>
+ </li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><img src="lang/{{current_lang}}/flag.png"><b class="caret"></b></a>
<ul class="dropdown-menu">