Skip to content

Node.js based forum software built for the modern web

`admin/development` translations

Peter Jaszkowiak50aed01c57de
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 <strong>%1:%2</strong>",
+ "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 @@
<div class="info">
<div class="panel panel-default">
<div class="panel-heading">
- <h3 class="panel-title">Info - You are on <strong>{host}:{port}</strong></h3>
+ <h3 class="panel-title">[[admin/development/info:you-are-on, {host}, {port}]]</h3>
</div>
<div class="panel-body">
<table class="table table-striped">
<thead>
<tr>
- <td>host</td>
- <td>pid</td>
- <td>nodejs</td>
- <td>online</td>
- <td>git</td>
- <td>load</td>
- <td>uptime</td>
+ <td>[[admin/development/info:host]]</td>
+ <td>[[admin/development/info:pid]]</td>
+ <td>[[admin/development/info:nodejs]]</td>
+ <td>[[admin/development/info:online]]</td>
+ <td>[[admin/development/info:git]]</td>
+ <td>[[admin/development/info:load]]</td>
+ <td>[[admin/development/info:uptime]]</td>
</tr>
</thead>
<tbody>
@@ -23,7 +23,11 @@
<td>{info.os.hostname}:{info.process.port}</td>
<td>{info.process.pid}</td>
<td>{info.process.version}</td>
- <td><span title="Registered">{info.stats.onlineRegisteredCount}</span> / <span title="Guest">{info.stats.onlineGuestCount}</span> / <span title="Sockets">{info.stats.socketCount}</span></td>
+ <td>
+ <span title="[[admin/development/info:registered]]">{info.stats.onlineRegisteredCount}</span> /
+ <span title="[[admin/development/info:guests]]">{info.stats.onlineGuestCount}</span> /
+ <span title="[[admin/development/info:sockets]]">{info.stats.socketCount}</span>
+ </td>
<td>{info.git.branch}@<a href="https://github.com/NodeBB/NodeBB/commit/{info.git.hash}" target="_blank">{info.git.hash}</a></td>
<td>{info.os.load}</td>
<td>{info.process.uptime}</td>
@@ -37,7 +41,7 @@
<div class="panel panel-default">
<div class="panel-heading">
- <h3 class="panel-title">Info</h3>
+ <h3 class="panel-title">[[admin/development/info:info]]</h3>
</div>
<div class="panel-body">
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 @@
<div class="logger">
<div class="col-lg-9">
<div class="panel panel-default">
- <div class="panel-heading">Logger Settings</div>
+ <div class="panel-heading">[[admin/development/logger:logger-settings]]</div>
<div class="panel-body">
<p>
- 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]]
</p>
<br/>
<p>
- Simply check/uncheck the logging settings to enable or disable logging on the fly. No restart needed.
+ [[admin/development/logger:explanation]]
</p>
<br/>
<form>
<label>
- <input type="checkbox" data-field="loggerStatus"> <strong>Enable HTTP logging</strong>
+ <input type="checkbox" data-field="loggerStatus"> <strong>[[admin/development/logger:enable-http]]</strong>
</label>
<br/>
<br/>
<label>
- <input type="checkbox" data-field="loggerIOStatus"> <strong>Enable socket.io event logging</strong>
+ <input type="checkbox" data-field="loggerIOStatus"> <strong>[[admin/development/logger:enable-socket]]</strong>
</label>
<br/>
<br/>
- <label>Path to log file</label>
- <input class="form-control" type="text" placeholder="/path/to/log/file.log ::: leave blank to log to your terminal" data-field="loggerPath" />
+ <label>[[admin/development/logger:file-path]]</label>
+ <input class="form-control" type="text" placeholder="[[admin/development/logger:file-path-placeholder]]" data-field="loggerPath" />
</form>
</div>
</div>
@@ -36,9 +36,9 @@
<div class="col-lg-3 acp-sidebar">
<div class="panel panel-default">
- <div class="panel-heading">Logger Control Panel</div>
+ <div class="panel-heading">[[admin/development/logger:control-panel]]</div>
<div class="panel-body">
- <button class="btn btn-primary" id="save">Update Logger Settings</button>
+ <button class="btn btn-primary" id="save">[[admin/development/logger:update-settings]]</button>
</div>
</div>
</div>