Make serialization error message translatable

Also don't show "probably running a different version" message in simple singleplayer mode
This commit is contained in:
Kahrl 2015-07-14 18:20:50 +02:00
parent 8ac0cf500f
commit b30e8d8ec6
1 changed files with 7 additions and 3 deletions

View File

@ -4352,9 +4352,13 @@ void the_game(bool *kill,
}
} catch (SerializationError &e) {
error_message = std::string("A serialization error occurred:\n")
+ e.what() + "\n\nThe server is probably "
" running a different version of " PROJECT_NAME_C ".";
error_message = strgettext("A serialization error occurred:")
+ "\n" + e.what();
if (!simple_singleplayer_mode) {
error_message += "\n\n"
+ strgettext("The server is probably running a different version of")
+ " " PROJECT_NAME_C ".";
}
errorstream << error_message << std::endl;
} catch (ServerError &e) {
error_message = e.what();