translator.unescape

v1.18.x
psychobunny 10 years ago
parent 33e4a2f1ec
commit be06162f0d

@ -35,6 +35,10 @@
return text.replace(/\[\[([\S]*?)\]\]/g, '\\[\\[$1\\]\\]'); return text.replace(/\[\[([\S]*?)\]\]/g, '\\[\\[$1\\]\\]');
}; };
translator.unescape = function(text) {
return text.replace(/\\\[\\\[([\S]*?)\\\]\\\]/g, '[[$1]]');
};
translator.getLanguage = function() { translator.getLanguage = function() {
return config.defaultLang; return config.defaultLang;
}; };

Loading…
Cancel
Save