mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-04 03:21:18 +01:00
updated site title for tags page to be more user friendly
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
"recent": "Recent Topics",
|
||||
"users": "Registered Users",
|
||||
"notifications": "Notifications",
|
||||
"tags": "Topics tagged under %1",
|
||||
"user.edit": "Editing \"%1\"",
|
||||
"user.following": "People %1 Follows",
|
||||
"user.followers": "People who Follow %1",
|
||||
|
||||
@@ -45,7 +45,10 @@ module.exports = function(Meta) {
|
||||
require('../topics').getTopicField(tid, 'title', callback);
|
||||
} else if (tests.isTag.test(urlFragment)) {
|
||||
var tag = urlFragment.match(/tags\/([\s\S]+)/)[1];
|
||||
callback(null, tag);
|
||||
|
||||
translator.translate('[[pages:tags, ' + tag + ']]', language, function(translated) {
|
||||
callback(null, translated);
|
||||
});
|
||||
} else if (tests.isUserPage.test(urlFragment)) {
|
||||
var matches = urlFragment.match(/user\/([^\/]+)\/?([\w]+)?/),
|
||||
userslug = matches[1],
|
||||
|
||||
Reference in New Issue
Block a user