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) {
if (urlFragment === '') {
callback(null, 'Index');
} else if (urlFragment === 'recent') {
callback(null, 'Recent Topics');
} else if (urlFragment === 'unread') {
callback(null, 'Unread Topics');
} else if (urlFragment === 'users') {
callback(null, 'Registered Users');
var translated = ['', 'recent', 'unread', 'users', 'notifications'];
if (translated.indexOf(urlFragment) !== -1) {
if (!urlFragment.length) {
urlFragment = 'home';
}
translator.translate('[[pages:' + urlFragment + ']]', function(translated) {
callback(null, translated);
});
} else if (/^category\/\d+\/?/.test(urlFragment)) {
var cid = urlFragment.match(/category\/(\d+)/)[1];

Loading…
Cancel
Save