added "pages" translation file to languages

v1.18.x
Julian Lam 11 years ago
parent 5482146bc4
commit e69f5fff3b

@ -0,0 +1,7 @@
{
"home": "Home",
"unread": "Unread Topics",
"recent": "Recent Topics",
"users": "Registered Users",
"notifications": "Notifications"
}

@ -0,0 +1,7 @@
{
"home": "Home",
"unread": "Unread Topics",
"recent": "Recent Topics",
"users": "Registered Users",
"notifications": "Notifications"
}

@ -0,0 +1,7 @@
{
"home": "Home",
"unread": "Unread Topics",
"recent": "Recent Topics",
"users": "Registered Users",
"notifications": "Notifications"
}

@ -0,0 +1,7 @@
{
"home": "Home",
"unread": "Unread Topics",
"recent": "Recent Topics",
"users": "Registered Users",
"notifications": "Notifications"
}

@ -0,0 +1,7 @@
{
"home": "Home",
"unread": "Unread Topics",
"recent": "Recent Topics",
"users": "Registered Users",
"notifications": "Notifications"
}

@ -0,0 +1,7 @@
{
"home": "Home",
"unread": "Unread Topics",
"recent": "Recent Topics",
"users": "Registered Users",
"notifications": "Notifications"
}

@ -0,0 +1,7 @@
{
"home": "Home",
"unread": "Unread Topics",
"recent": "Recent Topics",
"users": "Registered Users",
"notifications": "Notifications"
}

@ -0,0 +1,7 @@
{
"home": "Home",
"unread": "Unread Topics",
"recent": "Recent Topics",
"users": "Registered Users",
"notifications": "Notifications"
}

@ -0,0 +1,7 @@
{
"home": "Home",
"unread": "Unread Topics",
"recent": "Recent Topics",
"users": "Registered Users",
"notifications": "Notifications"
}

@ -0,0 +1,7 @@
{
"home": "Home",
"unread": "Unread Topics",
"recent": "Recent Topics",
"users": "Registered Users",
"notifications": "Notifications"
}

@ -0,0 +1,7 @@
{
"home": "Home",
"unread": "Unread Topics",
"recent": "Recent Topics",
"users": "Registered Users",
"notifications": "Notifications"
}

@ -0,0 +1,7 @@
{
"home": "Home",
"unread": "Unread Topics",
"recent": "Recent Topics",
"users": "Registered Users",
"notifications": "Notifications"
}

@ -177,14 +177,15 @@ var fs = require('fs'),
}); });
}, },
parseFragment: function (urlFragment, callback) { parseFragment: function (urlFragment, callback) {
if (urlFragment === '') { var translated = ['', 'recent', 'unread', 'users', 'notifications'];
callback(null, 'Index'); if (translated.indexOf(urlFragment) !== -1) {
} else if (urlFragment === 'recent') { if (!urlFragment.length) {
callback(null, 'Recent Topics'); urlFragment = 'home';
} else if (urlFragment === 'unread') { }
callback(null, 'Unread Topics');
} else if (urlFragment === 'users') { translator.translate('[[pages:' + urlFragment + ']]', function(translated) {
callback(null, 'Registered Users'); callback(null, translated);
});
} else if (/^category\/\d+\/?/.test(urlFragment)) { } else if (/^category\/\d+\/?/.test(urlFragment)) {
var cid = urlFragment.match(/category\/(\d+)/)[1]; var cid = urlFragment.match(/category\/(\d+)/)[1];

Loading…
Cancel
Save