mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 16:13:46 +01:00
Make serialization error message translatable
Also don't show "probably running a different version" message in simple singleplayer mode
This commit is contained in:
parent
8ac0cf500f
commit
b30e8d8ec6
10
src/game.cpp
10
src/game.cpp
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user