mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
fixed language file not parsing in footer
This commit is contained in:
@@ -308,13 +308,17 @@ var path = require('path'),
|
|||||||
templates = global.templates;
|
templates = global.templates;
|
||||||
|
|
||||||
// translate all static templates served by webserver here. ex. footer, logout
|
// translate all static templates served by webserver here. ex. footer, logout
|
||||||
translator.translate(templates.footer.toString(), function(parsedTemplate) {
|
plugins.fireHook('filter:footer.build', '', function(err, appendHTML) {
|
||||||
plugins.fireHook('filter:footer.build', '', function(err, appendHTML) {
|
var footer = templates.footer.parse({
|
||||||
templates.footer = templates.footer.parse({
|
footerHTML: appendHTML
|
||||||
footerHTML: appendHTML
|
});
|
||||||
});
|
|
||||||
|
translator.translate(footer, function(parsedTemplate) {
|
||||||
|
templates.footer = parsedTemplate;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
translator.translate(templates.logout.toString(), function(parsedTemplate) {
|
translator.translate(templates.logout.toString(), function(parsedTemplate) {
|
||||||
templates.logout = parsedTemplate;
|
templates.logout = parsedTemplate;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user