Updated AJAX translator to make use of canParse and the fixed parseAllLangs.

This commit is contained in:
bjorn
2008-08-18 09:38:21 +00:00
parent 686dd71041
commit ae90af3211
2 changed files with 25 additions and 9 deletions

View File

@@ -23,8 +23,10 @@
var f = document.getElementById('fromLang');
var t = document.getElementById('toLang');
for (var i in langs) {
addOption(f, langs[i], langs[i]);
addOption(t, langs[i], langs[i]);
if (langs[i].canParse) {
addOption(f, i, i);
}
addOption(t, i, i);
}
}
@@ -32,7 +34,7 @@
gf.getLanguages(populateLangs);
}
</script>
<title>Web-based GF Translator</title>
<title>AJAX GF Translator</title>
</head>
<body onload="initialize()">
<form id="translate">