`admin/advanced` JS translations

v1.18.x
Peter Jaszkowiak 8 years ago committed by Julian Lam
parent 0b4c39338e
commit 606de990e9

@ -8,5 +8,7 @@
"clear-error-log": "Clear Error Log",
"route": "Route",
"count": "Count",
"no-routes-not-found": "Hooray! There are no routes that were not found."
"no-routes-not-found": "Hooray! There are no routes that were not found.",
"clear404-confirm": "Are you sure you wish to clear the 404 error logs?",
"clear404-success": "\"404 Not Found\" errors cleared"
}

@ -2,5 +2,6 @@
"logs": "Logs",
"control-panel": "Logs Control Panel",
"reload": "Reload Logs",
"clear": "Clear Logs"
"clear": "Clear Logs",
"clear-success": "Logs Cleared!"
}

@ -1,7 +1,7 @@
"use strict";
/*global config, define, app, socket, ajaxify, bootbox, templates, Chart, utils */
define('admin/advanced/errors', ['Chart'], function (Chart) {
define('admin/advanced/errors', ['Chart', 'translator'], function (Chart, translator) {
var Errors = {};
Errors.init = function () {
@ -11,7 +11,7 @@ define('admin/advanced/errors', ['Chart'], function (Chart) {
};
Errors.clear404 = function () {
bootbox.confirm('Are you sure you wish to clear the 404 error logs?', function (ok) {
bootbox.confirm('[[admin/advanced/errors:clear404-confirm]]', function (ok) {
if (ok) {
socket.emit('admin.errors.clear', {}, function (err) {
if (err) {
@ -19,7 +19,7 @@ define('admin/advanced/errors', ['Chart'], function (Chart) {
}
ajaxify.refresh();
app.alertSuccess('"404 Not Found" errors cleared');
app.alertSuccess('[[admin/advanced/errors:clear404-success]]');
});
}
});

@ -29,7 +29,7 @@ define('admin/advanced/logs', function () {
case 'clear':
socket.emit('admin.logs.clear', function (err) {
if (!err) {
app.alertSuccess('Logs Cleared!');
app.alertSuccess('[[admin/advanced/logs:clear-success]]');
btnEl.prev().click();
}
});

Loading…
Cancel
Save