Add a translatable message for the new error code
This commit is contained in:
parent
121b2d373f
commit
b080750e49
1 changed files with 2 additions and 0 deletions
|
@ -358,6 +358,8 @@ static server_type open_connection(game_display& disp, const std::string& origin
|
|||
"seed for your connection).");
|
||||
} else if((*error)["error_code"] == MP_INCORRECT_PASSWORD_ERROR) {
|
||||
error_message = _("The password you provided was incorrect.");
|
||||
} else if((*error)["error_code"] == MP_TOO_MANY_ATTEMPTS_ERROR) {
|
||||
error_message = _("You have made too many login attempts.");
|
||||
} else {
|
||||
error_message = (*error)["message"].str();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue