updated site title for tags page to be more user friendly

v1.18.x
psychobunny 11 years ago
parent 38dc35f480
commit b1ef42889d

@ -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],

Loading…
Cancel
Save