Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nits #415

Merged
merged 6 commits into from
Nov 16, 2016
Merged

Nits #415

Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixes nits
  • Loading branch information
gguuss committed Nov 16, 2016
commit 88a5d56fdd5af62782b9aafdcb96f4a733753aa9
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public static void translateText(String sourceText, PrintStream out) {

/**
* Translate the source text from source to target language.
* Make sure that your project is whitelisted.
* Make sure that your project is whitelisted.
*
* @param sourceText source text to be translated
* @param sourceLang source language of the text
Expand All @@ -83,7 +83,8 @@ public static void translateTextWithOptionsAndModel(

Translation translation = translate.translate(sourceText, srcLang, tgtLang, model);
out.printf("Source Text:\n\tLang: %s, Text: %s\n", sourceLang, sourceText);
out.printf("TranslatedText:\n\tLang: %s, Text: %s\n", targetLang, translation.getTranslatedText());
out.printf("TranslatedText:\n\tLang: %s, Text: %s\n", targetLang,
translation.getTranslatedText());
}


Expand All @@ -107,7 +108,8 @@ public static void translateTextWithOptions(

Translation translation = translate.translate(sourceText, srcLang, tgtLang);
out.printf("Source Text:\n\tLang: %s, Text: %s\n", sourceLang, sourceText);
out.printf("TranslatedText:\n\tLang: %s, Text: %s\n", targetLang, translation.translatedText());
out.printf("TranslatedText:\n\tLang: %s, Text: %s\n", targetLang,
translation.translatedText());
}

/**
Expand Down