Enable English strings in the localization test page. #626
This commit is contained in:
parent
0835eadf81
commit
542bce301d
|
@ -8,6 +8,7 @@
|
||||||
var _M_ = 'MISSING TRANSLATION';
|
var _M_ = 'MISSING TRANSLATION';
|
||||||
</script>
|
</script>
|
||||||
<script type="text/x-mathjax-config">
|
<script type="text/x-mathjax-config">
|
||||||
|
MathJax.Localization.strings.en.isLoaded = false;
|
||||||
MathJax.Hub.Config({
|
MathJax.Hub.Config({
|
||||||
TeX: {
|
TeX: {
|
||||||
noErrors: { disabled: true },
|
noErrors: { disabled: true },
|
||||||
|
@ -19,12 +20,11 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/* Create the list of locales. We exclude 'en' as it behaves differently than
|
/* Create the list of locales. */
|
||||||
the others and we don't want to copy the en strings again here. */
|
|
||||||
var locales = {};
|
var locales = {};
|
||||||
var i = 0;
|
var i = 0;
|
||||||
for (l in MathJax.Localization.strings) {
|
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');
|
var option = document.createElement('option');
|
||||||
option.appendChild(document.createTextNode(l));
|
option.appendChild(document.createTextNode(l));
|
||||||
document.form.locale.appendChild(option);
|
document.form.locale.appendChild(option);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user