aboutsummaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/menu/credits.gd10
-rw-r--r--client/multiplayer.gd8
2 files changed, 8 insertions, 10 deletions
diff --git a/client/menu/credits.gd b/client/menu/credits.gd
index 0eccaae2..52a3b7e6 100644
--- a/client/menu/credits.gd
+++ b/client/menu/credits.gd
@@ -22,13 +22,13 @@ const cc_by_4 := "CC-BY 4.0"
const cc_by_3 := "CC-BY 3.0"
const cc0 := "CC0"
var credits := [
- [tr("Models"), [
+ [tr("c.credits.models"), [
["kenney.nl", "Various Models", cc0],
["Kay Lousberg", "Kitchen tiles", cc0],
["Poly by Google", "Strawberry", cc_by_3],
["Poly by Google", "Fish", cc_by_3]
]],
- [tr("Sounds"), [
+ [tr("c.credits.sounds"), [
["Dryoma", "Footstep sounds", cc_by_4],
["Koops", "Page_Turn_24.wav", cc_by_4],
["InspectorJ", "Pencil, Writing, Close, A.wav", cc_by_4],
@@ -49,8 +49,8 @@ func _ready():
var text = "[center]"
text += "\n\n\n[b]%s[/b]\n\n%s\n\n[b]%s[/b]\n\n\n" % [
- tr("Hurry Curry! - a game about cooking"),
- tr("developed by"),
+ tr("c.credits.title"),
+ tr("c.credits.developed_by"),
"\n".join(contributors)
]
@@ -62,7 +62,7 @@ func _ready():
text += "[cell][left]%s[/left][/cell]" % entry[2]
text += "[/table]\n\n\n"
- text += "\n[b]%s[/b]\n\n\n[/center]" % tr("Thank You For Playing")
+ text += "\n[b]%s[/b]\n\n\n[/center]" % tr("c.credits.thanks")
label.text = text
diff --git a/client/multiplayer.gd b/client/multiplayer.gd
index b38a9393..a70a5738 100644
--- a/client/multiplayer.gd
+++ b/client/multiplayer.gd
@@ -85,10 +85,8 @@ func _process(_delta):
handle_packet(socket.get_packet())
elif state == WebSocketPeer.STATE_CLOSED:
var code = socket.get_close_code()
- var reason = socket.get_close_reason() if code == socket.STATE_CLOSED else tr("unavailable", "The reason for the websocket closing is unavailable")
- connection_closed.emit(
- tr("WebSocket closed with code: %d, reason %s. Clean: %s") % [code, reason, code != -1]
- )
+ var reason = socket.get_close_reason() if code == socket.STATE_CLOSED else tr("c.error.websocket.unavailable")
+ connection_closed.emit(tr("c.error.websocket") % [code, reason, code != -1])
self.queue_free()
func handle_packet(bytes: PackedByteArray):
@@ -108,7 +106,7 @@ func handle_packet(bytes: PackedByteArray):
if major != VERSION_MAJOR and minor >= VERSION_MINOR:
socket.close()
connected = false
- connection_closed.emit(tr("Server and client versions do not match. Server: %d.%d, Client: %d.%d.\nAre you sure the game is up to date?") % [major, minor, VERSION_MAJOR, VERSION_MINOR])
+ connection_closed.emit(tr("c.error.version_mismatch") % [major, minor, VERSION_MAJOR, VERSION_MINOR])
"data":
var item_names = decoded["data"]["item_names"]
var tile_names = decoded["data"]["tile_names"]