Merge pull request #5391 from Pappmann/patch-4

added missing translation in dashboard
v1.18.x
Julian Lam 8 years ago committed by GitHub
commit 3ab631c82e

@ -2,6 +2,9 @@
"forum-traffic": "Forum Traffic", "forum-traffic": "Forum Traffic",
"page-views": "Page Views", "page-views": "Page Views",
"unique-visitors": "Unique Visitors", "unique-visitors": "Unique Visitors",
"users": "Users",
"posts": "Posts",
"topics": "Topics",
"page-views-last-month": "Page views Last Month", "page-views-last-month": "Page views Last Month",
"page-views-this-month": "Page views This Month", "page-views-this-month": "Page views This Month",
"page-views-last-day": "Page views in last 24 hours", "page-views-last-day": "Page views in last 24 hours",
@ -20,6 +23,11 @@
"prerelease-warning": "<p>This is a <strong>pre-release</strong> version of NodeBB. Unintended bugs may occur. <i class=\"fa fa-exclamation-triangle\"></i></p>", "prerelease-warning": "<p>This is a <strong>pre-release</strong> version of NodeBB. Unintended bugs may occur. <i class=\"fa fa-exclamation-triangle\"></i></p>",
"notices": "Notices", "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", "control-panel": "System Control",
"reload": "Reload", "reload": "Reload",

@ -19,14 +19,14 @@ dashboardController.get = function (req, res, next) {
var notices = [ var notices = [
{ {
done: !meta.reloadRequired, done: !meta.reloadRequired,
doneText: 'Restart not required', doneText: '[[admin/general/dashboard:restart-not-required]]',
notDoneText:'Restart required' notDoneText:'[[admin/general/dashboard:restart-required]]'
}, },
{ {
done: plugins.hasListeners('filter:search.query'), done: plugins.hasListeners('filter:search.query'),
doneText: 'Search Plugin Installed', doneText: '[[admin/general/dashboard:search-plugin-installed]]',
notDoneText:'Search Plugin not installed', notDoneText:'[[admin/general/dashboard:search-plugin-not-installed]]',
tooltip: 'Install a search plugin from the plugin page in order to activate search functionality', tooltip: '[[admin/general/dashboard:search-plugin-tooltip]]',
link:'/admin/extend/plugins' link:'/admin/extend/plugins'
} }
]; ];
@ -62,10 +62,10 @@ function getStats(callback) {
if (err) { if (err) {
return callback(err); return callback(err);
} }
results[0].name = 'Unique Visitors'; results[0].name = '[[admin/general/dashboard:unique-visitors]]';
results[1].name = 'Users'; results[1].name = '[[admin/general/dashboard:users]]';
results[2].name = 'Posts'; results[2].name = '[[admin/general/dashboard:posts]';
results[3].name = 'Topics'; results[3].name = '[[admin/general/dashboard:topics]]';
callback(null, results); callback(null, results);
}); });

Loading…
Cancel
Save