static String translate(String sourceLanguageCode, String targetLanguageCode, String sourceText) {
    Translate.setClientId(CLIENT_ID);
    Translate.setClientSecret(CLIENT_SECRET);
    try {
      Log.d(TAG, sourceLanguageCode + " -> " + targetLanguageCode);
      return Translate.execute(sourceText, Language.fromString(sourceLanguageCode), 
          Language.fromString(targetLanguageCode));
    } catch (Exception e) {
      Log.e(TAG, "Caught exeption in translation request.");
      e.printStackTrace();
      return Translator.BAD_TRANSLATION_MSG;
    }
  }
Translate using Microsoft Translate API
@param sourceLanguageCode Source language code, for example, "en"
@param targetLanguageCode Target language code, for example, "es"
@param sourceText Text to send for translation
@return Translated text
OCRTest/src/main/java/edu/sfsu/cs/orange/ocr/language/TranslatorBing.java