Language src = Language.valueOf(sourceLanguages.getItemText(sourceLanguages.getSelectedIndex()));
Language dest = Language.valueOf(destinationLanguages.getItemText(destinationLanguages.getSelectedIndex()));
// Translation API call to translate text
Translation.translate(inputTextArea.getText(), src, dest,
new TranslationCallback() {
@Override
protected void onCallback(TranslationResult result) {
if (result.getError() == null) {
outputDiv.setText(result.getTranslatedText());
} else {