diff options
-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 |