From 0e0d8474a4894589defbc166910abaabc8db675d Mon Sep 17 00:00:00 2001 From: psychobunny Date: Wed, 26 Aug 2015 13:48:27 -0400 Subject: [PATCH] page titles for user pages #3481 --- public/language/en_GB/pages.json | 7 ++++++- src/meta/title.js | 8 ++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/public/language/en_GB/pages.json b/public/language/en_GB/pages.json index d9825d5800..da8514029c 100644 --- a/public/language/en_GB/pages.json +++ b/public/language/en_GB/pages.json @@ -3,7 +3,12 @@ "unread": "Unread Topics", "popular": "Popular Topics", "recent": "Recent Topics", - "users": "Registered Users", + "users/online": "Online Users", + "users/latest": "Latest Users", + "users/sort-posts": "Users with the most posts", + "users/sort-reputation": "Users with the most reputation", + "users/map": "User Map", + "users/search": "User Search", "notifications": "Notifications", "tags": "Tags", "tag": "Topics tagged under \"%1\"", diff --git a/src/meta/title.js b/src/meta/title.js index c33348ab4e..e5b57e2113 100644 --- a/src/meta/title.js +++ b/src/meta/title.js @@ -41,8 +41,12 @@ module.exports = function(Meta) { }; Meta.title.parseFragment = function (urlFragment, language, callback) { - var translated = ['', 'recent', 'unread', 'users', 'notifications', 'popular', 'tags'], - onParsed = function(err, translated) { + var translated = [ + '', 'recent', 'unread', 'notifications', 'popular', 'tags', + 'users/online', 'users/latest', 'users/sort-posts', 'users/sort-reputation', 'users/map', 'users/search' + ]; + + var onParsed = function(err, translated) { if (err) { return callback(err); }