mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 09:56:16 +02:00
added "pages" translation file to languages
This commit is contained in:
7
public/language/ar/pages.json
Normal file
7
public/language/ar/pages.json
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"home": "Home",
|
||||||
|
"unread": "Unread Topics",
|
||||||
|
"recent": "Recent Topics",
|
||||||
|
"users": "Registered Users",
|
||||||
|
"notifications": "Notifications"
|
||||||
|
}
|
||||||
7
public/language/cs/pages.json
Normal file
7
public/language/cs/pages.json
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"home": "Home",
|
||||||
|
"unread": "Unread Topics",
|
||||||
|
"recent": "Recent Topics",
|
||||||
|
"users": "Registered Users",
|
||||||
|
"notifications": "Notifications"
|
||||||
|
}
|
||||||
7
public/language/de/pages.json
Normal file
7
public/language/de/pages.json
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"home": "Home",
|
||||||
|
"unread": "Unread Topics",
|
||||||
|
"recent": "Recent Topics",
|
||||||
|
"users": "Registered Users",
|
||||||
|
"notifications": "Notifications"
|
||||||
|
}
|
||||||
7
public/language/en/pages.json
Normal file
7
public/language/en/pages.json
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"home": "Home",
|
||||||
|
"unread": "Unread Topics",
|
||||||
|
"recent": "Recent Topics",
|
||||||
|
"users": "Registered Users",
|
||||||
|
"notifications": "Notifications"
|
||||||
|
}
|
||||||
7
public/language/es/pages.json
Normal file
7
public/language/es/pages.json
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"home": "Home",
|
||||||
|
"unread": "Unread Topics",
|
||||||
|
"recent": "Recent Topics",
|
||||||
|
"users": "Registered Users",
|
||||||
|
"notifications": "Notifications"
|
||||||
|
}
|
||||||
7
public/language/fi/pages.json
Normal file
7
public/language/fi/pages.json
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"home": "Home",
|
||||||
|
"unread": "Unread Topics",
|
||||||
|
"recent": "Recent Topics",
|
||||||
|
"users": "Registered Users",
|
||||||
|
"notifications": "Notifications"
|
||||||
|
}
|
||||||
7
public/language/fr/pages.json
Normal file
7
public/language/fr/pages.json
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"home": "Home",
|
||||||
|
"unread": "Unread Topics",
|
||||||
|
"recent": "Recent Topics",
|
||||||
|
"users": "Registered Users",
|
||||||
|
"notifications": "Notifications"
|
||||||
|
}
|
||||||
7
public/language/it/pages.json
Normal file
7
public/language/it/pages.json
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"home": "Home",
|
||||||
|
"unread": "Unread Topics",
|
||||||
|
"recent": "Recent Topics",
|
||||||
|
"users": "Registered Users",
|
||||||
|
"notifications": "Notifications"
|
||||||
|
}
|
||||||
7
public/language/pt_br/pages.json
Normal file
7
public/language/pt_br/pages.json
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"home": "Home",
|
||||||
|
"unread": "Unread Topics",
|
||||||
|
"recent": "Recent Topics",
|
||||||
|
"users": "Registered Users",
|
||||||
|
"notifications": "Notifications"
|
||||||
|
}
|
||||||
7
public/language/sk/pages.json
Normal file
7
public/language/sk/pages.json
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"home": "Home",
|
||||||
|
"unread": "Unread Topics",
|
||||||
|
"recent": "Recent Topics",
|
||||||
|
"users": "Registered Users",
|
||||||
|
"notifications": "Notifications"
|
||||||
|
}
|
||||||
7
public/language/zh_cn/pages.json
Normal file
7
public/language/zh_cn/pages.json
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"home": "Home",
|
||||||
|
"unread": "Unread Topics",
|
||||||
|
"recent": "Recent Topics",
|
||||||
|
"users": "Registered Users",
|
||||||
|
"notifications": "Notifications"
|
||||||
|
}
|
||||||
7
public/language/zh_tw/pages.json
Normal file
7
public/language/zh_tw/pages.json
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"home": "Home",
|
||||||
|
"unread": "Unread Topics",
|
||||||
|
"recent": "Recent Topics",
|
||||||
|
"users": "Registered Users",
|
||||||
|
"notifications": "Notifications"
|
||||||
|
}
|
||||||
17
src/meta.js
17
src/meta.js
@@ -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];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user