v1.18.x
barisusakli 10 years ago
parent 326c531d7f
commit 7a3b4c08e0

@ -5,7 +5,8 @@
"recent": "Recent Topics",
"users": "Registered Users",
"notifications": "Notifications",
"tags": "Topics tagged under \"%1\"",
"tags": "Tags",
"tag": "Topics tagged under \"%1\"",
"user.edit": "Editing \"%1\"",
"user.following": "People %1 Follows",
"user.followers": "People who Follow %1",

@ -40,7 +40,7 @@ module.exports = function(Meta) {
};
Meta.title.parseFragment = function (urlFragment, language, locals, callback) {
var translated = ['', 'recent', 'unread', 'users', 'notifications'];
var translated = ['', 'recent', 'unread', 'users', 'notifications', 'popular', 'tags'];
if (translated.indexOf(urlFragment) !== -1) {
if (!urlFragment.length) {
urlFragment = 'home';
@ -60,7 +60,7 @@ module.exports = function(Meta) {
} else if (tests.isTag.test(urlFragment)) {
var tag = urlFragment.match(/tags\/([\s\S]+)/)[1];
translator.translate('[[pages:tags, ' + tag + ']]', language, function(translated) {
translator.translate('[[pages:tag, ' + tag + ']]', language, function(translated) {
callback(null, translated);
});
} else if (tests.isUserPage.test(urlFragment)) {

Loading…
Cancel
Save