Skip to content
Snippets Groups Projects
Commit b30e8d8e authored by Kahrl's avatar Kahrl
Browse files

Make serialization error message translatable

Also don't show "probably running a different version" message in simple singleplayer mode
parent 8ac0cf50
No related branches found
No related tags found
No related merge requests found
...@@ -4352,9 +4352,13 @@ void the_game(bool *kill, ...@@ -4352,9 +4352,13 @@ void the_game(bool *kill,
} }
} catch (SerializationError &e) { } catch (SerializationError &e) {
error_message = std::string("A serialization error occurred:\n") error_message = strgettext("A serialization error occurred:")
+ e.what() + "\n\nThe server is probably " + "\n" + e.what();
" running a different version of " PROJECT_NAME_C "."; 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; errorstream << error_message << std::endl;
} catch (ServerError &e) { } catch (ServerError &e) {
error_message = e.what(); error_message = e.what();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment