translator.escape

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

@ -29,7 +29,11 @@
callback(languages[language].loaded[filename]);
});
}
}
};
translator.escape = function(text) {
return text.replace(/\[\[([\S]*?)\]\]/g, '\\[\\[$1\\]\\]');
};
translator.getLanguage = function() {
return config.defaultLang;

Loading…
Cancel
Save