Enable English strings in the localization test page. #626

This commit is contained in:
Frédéric Wang 2013-10-18 08:01:13 +02:00
parent 0835eadf81
commit 542bce301d

View File

@ -8,6 +8,7 @@
var _M_ = 'MISSING TRANSLATION';
</script>
<script type="text/x-mathjax-config">
MathJax.Localization.strings.en.isLoaded = false;
MathJax.Hub.Config({
TeX: {
noErrors: { disabled: true },
@ -19,12 +20,11 @@
}
});
/* Create the list of locales. We exclude 'en' as it behaves differently than
the others and we don't want to copy the en strings again here. */
/* Create the list of locales. */
var locales = {};
var i = 0;
for (l in MathJax.Localization.strings) {
if (!MathJax.Localization.strings.hasOwnProperty(l) || l == "en") continue;
if (!MathJax.Localization.strings.hasOwnProperty(l)) continue;
var option = document.createElement('option');
option.appendChild(document.createTextNode(l));
document.form.locale.appendChild(option);