From 50aed01c57de5748e063df6c2eb0f177608f2559 Mon Sep 17 00:00:00 2001 From: Peter Jaszkowiak Date: Thu, 1 Dec 2016 20:08:30 -0700 Subject: [PATCH] `admin/development` translations --- .../en-GB/admin/development/info.json | 16 +++++++++++++ .../en-GB/admin/development/logger.json | 12 ++++++++++ src/views/admin/development/info.tpl | 24 +++++++++++-------- src/views/admin/development/logger.tpl | 18 +++++++------- 4 files changed, 51 insertions(+), 19 deletions(-) create mode 100644 public/language/en-GB/admin/development/info.json create mode 100644 public/language/en-GB/admin/development/logger.json diff --git a/public/language/en-GB/admin/development/info.json b/public/language/en-GB/admin/development/info.json new file mode 100644 index 0000000000..b2768ca212 --- /dev/null +++ b/public/language/en-GB/admin/development/info.json @@ -0,0 +1,16 @@ +{ + "you-are-on": "Info - You are on %1:%2", + "host": "host", + "pid": "pid", + "nodejs": "nodejs", + "online": "online", + "git": "git", + "load": "load", + "uptime": "uptime", + + "registered": "Registered", + "sockets": "Sockets", + "guests": "Guests", + + "info": "Info" +} \ No newline at end of file diff --git a/public/language/en-GB/admin/development/logger.json b/public/language/en-GB/admin/development/logger.json new file mode 100644 index 0000000000..6ab9558149 --- /dev/null +++ b/public/language/en-GB/admin/development/logger.json @@ -0,0 +1,12 @@ +{ + "logger-settings": "Logger Settings", + "description": "By enabling the check boxes, you will receive logs to your terminal. If you specify a path, logs will then be saved to a file instead. HTTP logging is useful for collecting statistics about who, when, and what people access on your forum. In addition to logging HTTP requests, we can also log socket.io events. Socket.io logging, in combination with redis-cli monitor, can be very helpful for learning NodeBB's internals.", + "explanation": "Simply check/uncheck the logging settings to enable or disable logging on the fly. No restart needed.", + "enable-http": "Enable HTTP logging", + "enable-socket": "Enable socket.io event logging", + "file-path": "Path to log file", + "file-path-placeholder": "/path/to/log/file.log ::: leave blank to log to your terminal", + + "control-panel": "Logger Control Panel", + "update-settings": "Update Logger Settings" +} \ No newline at end of file diff --git a/src/views/admin/development/info.tpl b/src/views/admin/development/info.tpl index c4f9ddde1b..50963d4d8c 100644 --- a/src/views/admin/development/info.tpl +++ b/src/views/admin/development/info.tpl @@ -1,20 +1,20 @@
-

Info - You are on {host}:{port}

+

[[admin/development/info:you-are-on, {host}, {port}]]

- - - - - - - + + + + + + + @@ -23,7 +23,11 @@ - + @@ -37,7 +41,7 @@
-

Info

+

[[admin/development/info:info]]

diff --git a/src/views/admin/development/logger.tpl b/src/views/admin/development/logger.tpl index 4a280238b7..7b33625931 100644 --- a/src/views/admin/development/logger.tpl +++ b/src/views/admin/development/logger.tpl @@ -1,33 +1,33 @@
-
Logger Settings
+
[[admin/development/logger:logger-settings]]

- By enabling the check boxes, you will receive logs to your terminal. If you specify a path, logs will then be saved to a file instead. HTTP logging is useful for collecting statistics about who, when, and what people access on your forum. In addition to logging HTTP requests, we can also log socket.io events. Socket.io logging, in combination with redis-cli monitor, can be very helpful for learning NodeBB's internals. + [[admin/development/logger:description]]


- Simply check/uncheck the logging settings to enable or disable logging on the fly. No restart needed. + [[admin/development/logger:explanation]]






- - + +
@@ -36,9 +36,9 @@
-
Logger Control Panel
+
[[admin/development/logger:control-panel]]
- +
hostpidnodejsonlinegitloaduptime[[admin/development/info:host]][[admin/development/info:pid]][[admin/development/info:nodejs]][[admin/development/info:online]][[admin/development/info:git]][[admin/development/info:load]][[admin/development/info:uptime]]
{info.os.hostname}:{info.process.port} {info.process.pid} {info.process.version}{info.stats.onlineRegisteredCount} / {info.stats.onlineGuestCount} / {info.stats.socketCount} + {info.stats.onlineRegisteredCount} / + {info.stats.onlineGuestCount} / + {info.stats.socketCount} + {info.git.branch}@{info.git.hash} {info.os.load} {info.process.uptime}