Node.js based forum software built for the modern web
app.js + todo
psychobunnya631707db4b3
diff --git a/app.js b/app.jsindex 33c765a012..362d6604dc 100644--- a/app.js+++ b/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 itselfglobal.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')) {diff --git a/public/language/TODO b/public/language/TODOindex 2f9c2d6598..42a405e1c1 100644--- a/public/language/TODO+++ b/public/language/TODO@@ -1,2 +1,7 @@+1. NPM INSTALLFor 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.\ No newline at end of file+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)\ No newline at end of file