From 30087947973a69a3a4547a8bd0edd97c99b2f044 Mon Sep 17 00:00:00 2001 From: Peter Jaszkowiak
You are up-to-date
", + "upgrade-available": "A new version (v%1) has been released. Consider upgrading your NodeBB.
", + "prerelease-upgrade-available": "This is an outdated pre-release version of NodeBB. A new version (v%1) has been released. Consider upgrading your NodeBB.
", + "prerelease-warning": "This is a pre-release version of NodeBB. Unintended bugs may occur.
", "notices": "Notices", @@ -26,6 +30,10 @@ "realtime-chart-updates": "Realtime Chart Updates", "active-users": "Active Users", + "active-users.users": "Users", + "active-users.guests": "Guests", + "active-users.total": "Total", + "active-users.connections": "Connections", "anonymous-registered-users": "Anonymous vs Registered Users", "anonymous": "Anonymous", @@ -38,5 +46,10 @@ "recent": "Recent", "unread": "Unread", - "high-presence-topics": "High Presence Topics" + "high-presence-topics": "High Presence Topics", + + "graphs.page-views": "Page Views", + "graphs.unique-visitors": "Unique Visitors", + "graphs.registered-users": "Registered Users", + "graphs.anonymous-users": "Anonymous Users" } \ No newline at end of file diff --git a/public/language/en-GB/admin/general/social.json b/public/language/en-GB/admin/general/social.json index 257e20b54b..23aedfcfaa 100644 --- a/public/language/en-GB/admin/general/social.json +++ b/public/language/en-GB/admin/general/social.json @@ -1,4 +1,5 @@ { "post-sharing": "Post Sharing", - "info-plugins-additional": "Plugins can add additional networks for sharing posts." + "info-plugins-additional": "Plugins can add additional networks for sharing posts.", + "save-success": "Successfully saved Post Sharing Networks!" } \ No newline at end of file diff --git a/public/language/en-GB/admin/general/sounds.json b/public/language/en-GB/admin/general/sounds.json index 42860f4b1c..95ccbde0f1 100644 --- a/public/language/en-GB/admin/general/sounds.json +++ b/public/language/en-GB/admin/general/sounds.json @@ -4,5 +4,6 @@ "play-sound": "Play", "incoming-message": "Incoming Message", "outgoing-message": "Outgoing Message", - "upload-new-sound": "Upload New Sound" + "upload-new-sound": "Upload New Sound", + "saved": "Settings Saved" } \ No newline at end of file diff --git a/public/src/admin/general/dashboard.js b/public/src/admin/general/dashboard.js index 62ef80313a..f17be6fde2 100644 --- a/public/src/admin/general/dashboard.js +++ b/public/src/admin/general/dashboard.js @@ -1,22 +1,22 @@ "use strict"; /*global define, ajaxify, app, socket, utils, bootbox, RELATIVE_PATH*/ -define('admin/general/dashboard', ['semver', 'Chart'], function (semver, Chart) { +define('admin/general/dashboard', ['semver', 'Chart', 'translator'], function (semver, Chart, translator) { var Admin = {}; var intervals = { - rooms: false, - graphs: false - }; + rooms: false, + graphs: false + }; var isMobile = false; var isPrerelease = /^v?\d+\.\d+\.\d+-.+$/; var graphData = { - rooms: {}, - traffic: {} - }; + rooms: {}, + traffic: {} + }; var currentGraph = { - units: 'hours', - until: undefined - }; + units: 'hours', + until: undefined + }; var DEFAULTS = { roomInterval: 10000, @@ -53,23 +53,28 @@ define('admin/general/dashboard', ['semver', 'Chart'], function (semver, Chart) var version = $('#version').html(), latestVersion = releases[0].name.slice(1), - checkEl = $('.version-check'); + checkEl = $('.version-check'), + text; // Alter box colour accordingly if (semver.eq(latestVersion, version)) { checkEl.removeClass('alert-info').addClass('alert-success'); - checkEl.append('You are up-to-date
'); + text = '[[admin/general/dashboard:up-to-date]]'; } else if (semver.gt(latestVersion, version)) { checkEl.removeClass('alert-info').addClass('alert-warning'); if (!isPrerelease.test(version)) { - checkEl.append('A new version (v' + latestVersion + ') has been released. Consider upgrading your NodeBB.
'); + text = '[[admin/general/dashboard:upgrade-available, ' + latestVersion + ']]'; } else { - checkEl.append('This is an outdated pre-release version of NodeBB. A new version (v' + latestVersion + ') has been released. Consider upgrading your NodeBB.
'); + text = '[[admin/general/dashboard:prerelease-upgrade-available, ' + latestVersion + ']]'; } } else if (isPrerelease.test(version)) { checkEl.removeClass('alert-info').addClass('alert-info'); - checkEl.append('This is a pre-release version of NodeBB. Unintended bugs may occur. .
'); + text = '[[admin/general/dashboard:prerelease-warning]]'; } + + translator.translate(text, function (text) { + checkEl.append(text); + }); }); $('[data-toggle="tooltip"]').tooltip(); @@ -92,26 +97,28 @@ define('admin/general/dashboard', ['semver', 'Chart'], function (semver, Chart) var html = '- [[maintenance-mode]] + [[admin/general/dashboard:maintenance-mode]]
{available.text} {available.route}
- [[admin/general/navigation:core]] [[plugin]]
+ [[admin/general/navigation:core]] [[admin/general/navigation:plugin]]