summaryrefslogtreecommitdiff
path: root/client/global.gd
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-08-22 17:46:08 +0200
committermetamuffin <metamuffin@disroot.org>2024-08-22 17:46:08 +0200
commit69dc6c1cb96536e4fa6998ed3d13786dbaf7595e (patch)
treec914ae741b56fe0db93197881342280975f712c8 /client/global.gd
parent897c779a8e398db42e66655eef18a1df2350009f (diff)
downloadhurrycurry-69dc6c1cb96536e4fa6998ed3d13786dbaf7595e.tar
hurrycurry-69dc6c1cb96536e4fa6998ed3d13786dbaf7595e.tar.bz2
hurrycurry-69dc6c1cb96536e4fa6998ed3d13786dbaf7595e.tar.zst
list new languages ingame
Diffstat (limited to 'client/global.gd')
-rw-r--r--client/global.gd7
1 files changed, 5 insertions, 2 deletions
diff --git a/client/global.gd b/client/global.gd
index 7338e491..3dbcfacd 100644
--- a/client/global.gd
+++ b/client/global.gd
@@ -43,7 +43,7 @@ var using_joypad := false
var using_touch := false
var default_settings := {
- "language": DropdownSetting.new(tr("Language"), 0, languages.map(func (e): return e[1])),
+ "language": DropdownSetting.new(tr("Language"), 0, languages.map(func(e): return e[1])),
"master_volume": RangeSetting.new(tr("Master Volume"), 0, -30, 0),
"music_volume": RangeSetting.new(tr("Music Volume"), 0, -30, 0),
"sfx_volume": RangeSetting.new(tr("SFX Volume"), 0, -30, 0),
@@ -120,7 +120,7 @@ func _ready():
apply_settings()
get_viewport().gui_focus_changed.connect(Sound.play_hover_maybe)
- get_viewport().gui_focus_changed.connect(func (node): focused_node = node)
+ get_viewport().gui_focus_changed.connect(func(node): focused_node = node)
func _input(event):
if Input.is_action_just_pressed("fullscreen"):
@@ -378,6 +378,9 @@ const NATIVE_LANGUAGE_NAMES = {
"tr": "Türkçe",
"fi": "suomen",
"ar": "العربية",
+ "zh_Hans": "中文 (Simplified)", # TODO in chinese
+ "zh_Hant": "中文 (Traditional)",
+ "pl": "Polski",
}
func language_display(l: String): return "%s (%s)" % [NATIVE_LANGUAGE_NAMES[l], l]