mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-14 19:42:51 +01: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) {
|
||||
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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user