diff options
author | tpart <tpart120@proton.me> | 2024-09-20 00:57:13 +0200 |
---|---|---|
committer | tpart <tpart120@proton.me> | 2024-09-20 00:57:18 +0200 |
commit | e7a18d518772fbe14f2fbd6e0254a0daf326c210 (patch) | |
tree | ae9748259ed3559e9ec2a343b652c22e61627794 | |
parent | a3a8dc97c1459b98352d09f2f0bee9d49855311a (diff) | |
download | hurrycurry-e7a18d518772fbe14f2fbd6e0254a0daf326c210.tar hurrycurry-e7a18d518772fbe14f2fbd6e0254a0daf326c210.tar.bz2 hurrycurry-e7a18d518772fbe14f2fbd6e0254a0daf326c210.tar.zst |
Fix missing empty username translation
-rw-r--r-- | client/menu/character.gd | 2 | ||||
-rw-r--r-- | client/menu/setup.gd | 2 | ||||
-rw-r--r-- | locale/en.ini | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/client/menu/character.gd b/client/menu/character.gd index 862fc888..f487e59a 100644 --- a/client/menu/character.gd +++ b/client/menu/character.gd @@ -60,7 +60,7 @@ func _input(_event): func _on_back_pressed(): if username_edit.text == "": - await submenu("res://menu/warning_popup.tscn", tr("Username cannot be empty.")) + await submenu("res://menu/warning_popup.tscn", tr("c.error.empty_username")) return Global.set_profile("username", username_edit.text) diff --git a/client/menu/setup.gd b/client/menu/setup.gd index 5f168b21..89445ac6 100644 --- a/client/menu/setup.gd +++ b/client/menu/setup.gd @@ -53,7 +53,7 @@ func _process(delta): func check(): - if username.text == "": return tr("Username cannot be empty") + if username.text == "": return tr("c.error.empty_username") var n = username.text.to_lower() if n.begins_with("f") and n.ends_with("miller"): return tr("You cannot choose that name.\n(It's too close to your boss')") if character == -1: return tr("You must select a hairstyle") diff --git a/locale/en.ini b/locale/en.ini index 87e4c358..e57e1178 100644 --- a/locale/en.ini +++ b/locale/en.ini @@ -13,6 +13,7 @@ c.error.websocket.unavailable=unavailable c.error.websocket=WebSocket closed with code: {0}, reason {1}. Clean: {2} c.error=Error c.error.server=Error from server: {0} +c.error.empty_username=Username cannot be empty. c.hint.boost=Press {0} 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 {0} to pick up items and to interact with tools |