diff --git a/public/language/en-GB/admin/advanced/errors.json b/public/language/en-GB/admin/advanced/errors.json index dc9425b4c4..963e68b116 100644 --- a/public/language/en-GB/admin/advanced/errors.json +++ b/public/language/en-GB/admin/advanced/errors.json @@ -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" } \ No newline at end of file diff --git a/public/language/en-GB/admin/advanced/logs.json b/public/language/en-GB/admin/advanced/logs.json index 7426b14a36..b9de400e1c 100644 --- a/public/language/en-GB/admin/advanced/logs.json +++ b/public/language/en-GB/admin/advanced/logs.json @@ -2,5 +2,6 @@ "logs": "Logs", "control-panel": "Logs Control Panel", "reload": "Reload Logs", - "clear": "Clear Logs" + "clear": "Clear Logs", + "clear-success": "Logs Cleared!" } \ No newline at end of file diff --git a/public/src/admin/advanced/errors.js b/public/src/admin/advanced/errors.js index 29ee7e362c..d4cfccb7bd 100644 --- a/public/src/admin/advanced/errors.js +++ b/public/src/admin/advanced/errors.js @@ -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]]'); }); } }); diff --git a/public/src/admin/advanced/logs.js b/public/src/admin/advanced/logs.js index 2ea10f1b36..667dcd7280 100644 --- a/public/src/admin/advanced/logs.js +++ b/public/src/admin/advanced/logs.js @@ -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(); } });