Skip to content

Commit

Permalink
mp: Add client-side localization support for user_handler bans
Browse files Browse the repository at this point in the history
(cherry-picked from commit 80d6dbb)
  • Loading branch information
irydacea committed Oct 7, 2018
1 parent 61af81c commit 20ad699
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/game_initialization/multiplayer.cpp
Expand Up @@ -316,6 +316,12 @@ std::pair<wesnothd_connection_ptr, config> 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) {
Expand Down

0 comments on commit 20ad699

Please sign in to comment.