From 63388be44cc95451087818c2f404b90a328c60a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Sat, 18 Nov 2017 15:39:47 -0500 Subject: [PATCH] closes #6084 --- public/src/modules/translator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/modules/translator.js b/public/src/modules/translator.js index b98ad68abe..f192020ec5 100644 --- a/public/src/modules/translator.js +++ b/public/src/modules/translator.js @@ -505,7 +505,7 @@ Translator.compile = function compile() { var args = Array.prototype.slice.call(arguments, 0).map(function (text) { // escape commas and percent signs in arguments - return text.replace(/%/g, '%').replace(/,/g, ','); + return String(text).replace(/%/g, '%').replace(/,/g, ','); }); return '[[' + args.join(', ') + ']]';