Skip to content

Node.js based forum software built for the modern web

Fix bug where translator would split on all colons, and not just the first

Julian Lam1b812068ca85
diff --git a/public/src/modules/translator.js b/public/src/modules/translator.js
index 42efe5c529..8d37c1f004 100644
--- a/public/src/modules/translator.js
+++ b/public/src/modules/translator.js
@@ -168,6 +168,7 @@
var variables = key.split(regexes.split);
var parsedKey = key.replace('[[', '').replace(']]', '').split(':');
+ parsedKey = [parsedKey[0]].concat(parsedKey.slice(1).join(':'));
if (!(parsedKey[0] && parsedKey[1])) {
return callback(data);
}