mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 20:41:17 +01:00
app.js + todo
This commit is contained in:
21
app.js
21
app.js
@@ -79,20 +79,27 @@
|
||||
};
|
||||
|
||||
var templates = require('./public/src/templates.js'),
|
||||
translator = require('./public/src/translator.js'),
|
||||
webserver = require('./src/webserver.js'),
|
||||
websockets = require('./src/websockets.js'),
|
||||
plugins = require('./src/plugins'); // Don't remove this - plugins initializes itself
|
||||
|
||||
global.templates = {};
|
||||
templates.init([
|
||||
'header', 'footer', 'logout', 'outgoing', 'admin/header', 'admin/footer', 'admin/index',
|
||||
'emails/reset', 'emails/reset_plaintext', 'emails/email_confirm', 'emails/email_confirm_plaintext',
|
||||
'emails/header', 'emails/footer',
|
||||
|
||||
'noscript/header', 'noscript/home', 'noscript/category', 'noscript/topic'
|
||||
]);
|
||||
translator.loadAll(function () {
|
||||
// todo: replace below with read directory code, derp.
|
||||
templates.init([
|
||||
'header', 'footer', 'logout', 'outgoing', 'admin/header', 'admin/footer', 'admin/index',
|
||||
'emails/reset', 'emails/reset_plaintext', 'emails/email_confirm', 'emails/email_confirm_plaintext',
|
||||
'emails/header', 'emails/footer',
|
||||
|
||||
'noscript/header', 'noscript/home', 'noscript/category', 'noscript/topic'
|
||||
]);
|
||||
|
||||
templates.ready(webserver.init);
|
||||
});
|
||||
|
||||
|
||||
templates.ready(webserver.init);
|
||||
});
|
||||
|
||||
} else if (nconf.get('upgrade')) {
|
||||
|
||||
@@ -1,2 +1,7 @@
|
||||
1. NPM INSTALL
|
||||
For now, language packs will be stored here. Eventually, will be moved to server side to allow for npm installability.
|
||||
When that happens, server code will generate compressed JSON language files in this folder.
|
||||
When that happens, server code will generate compressed JSON language files in this folder.
|
||||
|
||||
|
||||
2. SERVERSIDE METHODS
|
||||
Allow server side code to call language.get(key)
|
||||
Reference in New Issue
Block a user