mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 17:55:59 +02:00
closes #2922
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user