From 20ad6993dd2321a74c8e6367df6885a5fe1ee700 Mon Sep 17 00:00:00 2001 From: Iris Morelle Date: Sun, 6 May 2018 05:16:40 -0300 Subject: [PATCH] mp: Add client-side localization support for user_handler bans (cherry-picked from commit 80d6dbbaf94e17658a9bf05a28846d227e5d3259) --- src/game_initialization/multiplayer.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/game_initialization/multiplayer.cpp b/src/game_initialization/multiplayer.cpp index 334bc500492d..a8abfd73aae8 100644 --- a/src/game_initialization/multiplayer.cpp +++ b/src/game_initialization/multiplayer.cpp @@ -316,6 +316,12 @@ std::pair open_connection(std::string host) } else if((*error)["error_code"] == MP_NAME_UNREGISTERED_ERROR) { error_message = VGETTEXT("The nickname ‘$nick’ is not registered on this server.", i18n_symbols) + _(" This server disallows unregistered nicknames."); + } else if((*error)["error_code"] == MP_NAME_AUTH_BAN_USER_ERROR) { + error_message = VGETTEXT("The nickname ‘$nick’ is banned on this server’s forums.", i18n_symbols); + } else if((*error)["error_code"] == MP_NAME_AUTH_BAN_IP_ERROR) { + error_message = _("Your IP address is banned on this server’s forums."); + } else if((*error)["error_code"] == MP_NAME_AUTH_BAN_EMAIL_ERROR) { + error_message = VGETTEXT("The email address for the nickname ‘$nick’ is banned on this server’s forums.", i18n_symbols); } else if((*error)["error_code"] == MP_PASSWORD_REQUEST) { error_message = VGETTEXT("The nickname ‘$nick’ is registered on this server.", i18n_symbols); } else if((*error)["error_code"] == MP_PASSWORD_REQUEST_FOR_LOGGED_IN_NAME) {