diff --git a/public/language/en-GB/admin/general/dashboard.json b/public/language/en-GB/admin/general/dashboard.json index b82802db1b..a70dda322e 100644 --- a/public/language/en-GB/admin/general/dashboard.json +++ b/public/language/en-GB/admin/general/dashboard.json @@ -2,6 +2,9 @@ "forum-traffic": "Forum Traffic", "page-views": "Page Views", "unique-visitors": "Unique Visitors", + "users": "Users", + "posts": "Posts", + "topics": "Topics", "page-views-last-month": "Page views Last Month", "page-views-this-month": "Page views This Month", "page-views-last-day": "Page views in last 24 hours", @@ -20,6 +23,11 @@ "prerelease-warning": "

This is a pre-release version of NodeBB. Unintended bugs may occur.

", "notices": "Notices", + "restart-not-required": "Restart not required", + "restart-required": "Restart required", + "search-plugin-installed": "Search Plugin installed", + "search-plugin-not-installed": "Search Plugin not installed", + "search-plugin-tooltip": "Install a search plugin from the plugin page in order to activate search functionality", "control-panel": "System Control", "reload": "Reload", @@ -52,4 +60,4 @@ "graphs.unique-visitors": "Unique Visitors", "graphs.registered-users": "Registered Users", "graphs.anonymous-users": "Anonymous Users" -} \ No newline at end of file +} diff --git a/src/controllers/admin/dashboard.js b/src/controllers/admin/dashboard.js index 22105b6652..75e5f52f1f 100644 --- a/src/controllers/admin/dashboard.js +++ b/src/controllers/admin/dashboard.js @@ -19,14 +19,14 @@ dashboardController.get = function (req, res, next) { var notices = [ { done: !meta.reloadRequired, - doneText: 'Restart not required', - notDoneText:'Restart required' + doneText: '[[admin/general/dashboard:restart-not-required]]', + notDoneText:'[[admin/general/dashboard:restart-required]]' }, { done: plugins.hasListeners('filter:search.query'), - doneText: 'Search Plugin Installed', - notDoneText:'Search Plugin not installed', - tooltip: 'Install a search plugin from the plugin page in order to activate search functionality', + doneText: '[[admin/general/dashboard:search-plugin-installed]]', + notDoneText:'[[admin/general/dashboard:search-plugin-not-installed]]', + tooltip: '[[admin/general/dashboard:search-plugin-tooltip]]', link:'/admin/extend/plugins' } ]; @@ -62,10 +62,10 @@ function getStats(callback) { if (err) { return callback(err); } - results[0].name = 'Unique Visitors'; - results[1].name = 'Users'; - results[2].name = 'Posts'; - results[3].name = 'Topics'; + results[0].name = '[[admin/general/dashboard:unique-visitors]]'; + results[1].name = '[[admin/general/dashboard:users]]'; + results[2].name = '[[admin/general/dashboard:posts]'; + results[3].name = '[[admin/general/dashboard:topics]]'; callback(null, results); }); @@ -101,4 +101,4 @@ function getGlobalField(field, callback) { }); } -module.exports = dashboardController; \ No newline at end of file +module.exports = dashboardController;