updated site title for tags page to be more user friendly

This commit is contained in:
psychobunny
2014-08-06 18:51:32 -04:00
parent 38dc35f480
commit b1ef42889d
2 changed files with 5 additions and 1 deletions

View File

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

View File

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