|
|
@ -505,7 +505,7 @@
|
|
|
|
Translator.compile = function compile() {
|
|
|
|
Translator.compile = function compile() {
|
|
|
|
var args = Array.prototype.slice.call(arguments, 0).map(function (text) {
|
|
|
|
var args = Array.prototype.slice.call(arguments, 0).map(function (text) {
|
|
|
|
// escape commas and percent signs in arguments
|
|
|
|
// escape commas and percent signs in arguments
|
|
|
|
return text.replace(/%/g, '%').replace(/,/g, ',');
|
|
|
|
return String(text).replace(/%/g, '%').replace(/,/g, ',');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
return '[[' + args.join(', ') + ']]';
|
|
|
|
return '[[' + args.join(', ') + ']]';
|
|
|
|