mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-03 08:12:51 -06:00
Updated AJAX translator to make use of canParse and the fixed parseAllLangs.
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user