CleanCode Language.java

This commit is contained in:
Andrin Fassbind 2021-10-14 14:38:05 +02:00
parent d88c41fa6c
commit 4a909be784
1 changed files with 4 additions and 4 deletions

View File

@ -16,9 +16,9 @@ public class Language {
private String outputLanguage = "de";
//Gibt mögliche Sprachen vor.
private final String germanShortCut = "de";
private final String englishShortCut = "en";
private final String vietnameseShortCut = "vn";
private String germanShortCut = "de";
private String englishShortCut = "en";
private String vietnameseShortCut = "vn";
public Language(String outputLanguage) {
if(checkForValidLanguage(outputLanguage)) {
@ -64,7 +64,7 @@ public class Language {
*/
public void outputGameStartedText() {
System.out.println(checkLanguage(
"Spiel hat gestartet. Mögen der Bessere gewinnen!",
"Spiel hat gestartet. Möge der Bessere gewinnen!",
"Game has started. May the best win!",
"Trò chơi đã bắt đầu. Chúc cho chiến thắng tốt nhất!"
));