1
0
forked from GitHub/gf-core

GWT translator: fixed copy-paste bug where the from language was sent as both from and to language.

This commit is contained in:
bjorn
2008-10-29 14:30:20 +00:00
parent f360e136b9
commit 70331e394b

View File

@@ -47,7 +47,7 @@ public class TranslateApp implements EntryPoint {
outputPanel.clear();
setStatus("Translating...");
pgf.translate(suggest.getText(), fromLangBox.getSelectedValues(), null,
fromLangBox.getSelectedValues(), new PGF.TranslateCallback() {
toLangBox.getSelectedValues(), new PGF.TranslateCallback() {
public void onResult (PGF.Translations translations) {
for (PGF.Translation t : translations.iterable()) {
addTranslation(t.getText(), t.getTo());