diff --git a/src/main/java/edu/unl/cse/csce361/socket_chat/Chat.java b/src/main/java/edu/unl/cse/csce361/socket_chat/Chat.java index 79d87d71a31e3d99b28ba82eb370fbac8b37b943..45f3a1f86979e877f2bcc47b16f519143c127f77 100644 --- a/src/main/java/edu/unl/cse/csce361/socket_chat/Chat.java +++ b/src/main/java/edu/unl/cse/csce361/socket_chat/Chat.java @@ -256,12 +256,12 @@ public class Chat { } } - private boolean handleKeyword(String keyword, boolean fromRemote, BufferedReader input, PrintStream output) { + private boolean handleKeyword(String keyword, boolean localMessage, BufferedReader input, PrintStream output) { if (keyword.equals(bundle.getString("communicate.keyword.exit"))) { return false; /* } else if (keyword.equals(bundle.getString("communicate.keyword.setLocale"))) { - if (fromRemote) { + if (localMessage) { Prompt user using output.println() (be sure to use i18n properties) and get response using input.readLine(). Get the appropriate Locale and call setLocale( ... );