diff options
author | tpart <tpart120@proton.me> | 2024-09-19 15:27:18 +0200 |
---|---|---|
committer | tpart <tpart120@proton.me> | 2024-09-19 15:27:18 +0200 |
commit | 8f89c3b445ff491e9c799693e7b118f4d492b05b (patch) | |
tree | 282f2cb980e176fd6eadb04650b6629f9a993ee6 | |
parent | bea768be2ac70564f39afc0bbec28453a02eb0aa (diff) | |
download | hurrycurry-8f89c3b445ff491e9c799693e7b118f4d492b05b.tar hurrycurry-8f89c3b445ff491e9c799693e7b118f4d492b05b.tar.bz2 hurrycurry-8f89c3b445ff491e9c799693e7b118f4d492b05b.tar.zst |
Clarify server error messages
-rw-r--r-- | client/game.gd | 4 | ||||
-rw-r--r-- | locale/en.ini | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/client/game.gd b/client/game.gd index 80a8177c..8da5182a 100644 --- a/client/game.gd +++ b/client/game.gd @@ -228,8 +228,8 @@ func handle_packet(p): var mstr := get_message_str(p.message) if p.error: # TODO: Custom popup message style for errors - popup_message.display_server_msg(mstr) - push_error("Server error: %s" % mstr) + popup_message.display_server_msg(tr("c.error.server") % mstr) + push_error(tr("c.error.server") % mstr) else: popup_message.display_server_msg(mstr) "server_hint": diff --git a/locale/en.ini b/locale/en.ini index 1755464b..7a1d9999 100644 --- a/locale/en.ini +++ b/locale/en.ini @@ -12,6 +12,7 @@ c.error.version_mismatch=Server and client versions do not match. Server: %d.%d, c.error.websocket.unavailable=unavailable c.error.websocket=WebSocket closed with code: %d, reason %s. Clean: %s c.error=Error +c.error.server=Error from server: %s c.hint.boost=Press %s to boost c.hint.framerate_low=Your framerate seems to be low. You can lower your graphics settings in the settings menu. c.hint.interact=Press %s to pick up items and to interact with tools |