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:
@@ -47,7 +47,7 @@ public class TranslateApp implements EntryPoint {
|
|||||||
outputPanel.clear();
|
outputPanel.clear();
|
||||||
setStatus("Translating...");
|
setStatus("Translating...");
|
||||||
pgf.translate(suggest.getText(), fromLangBox.getSelectedValues(), null,
|
pgf.translate(suggest.getText(), fromLangBox.getSelectedValues(), null,
|
||||||
fromLangBox.getSelectedValues(), new PGF.TranslateCallback() {
|
toLangBox.getSelectedValues(), new PGF.TranslateCallback() {
|
||||||
public void onResult (PGF.Translations translations) {
|
public void onResult (PGF.Translations translations) {
|
||||||
for (PGF.Translation t : translations.iterable()) {
|
for (PGF.Translation t : translations.iterable()) {
|
||||||
addTranslation(t.getText(), t.getTo());
|
addTranslation(t.getText(), t.getTo());
|
||||||
|
|||||||
Reference in New Issue
Block a user