aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/GameSession/SearchPanel.gd
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-08-01 00:17:32 +0200
committer hop311 <hop3114@gmail.com>2024-08-02 22:54:08 +0200
commit06b76612b28183f0a047dac3a4127120d2af1b39 (patch)
tree9e7af8634eafc8461bd02697dd48ae36ca924858 /game/src/Game/GameSession/SearchPanel.gd
parent8431914a6971cbacfb20bba13a4113d9ac4d5153 (diff)
Use UTF8 encoding and simplify godot string conversionutf8-fix
Fixes #180: Province names do not convert non-ascii characters to Unicode
Diffstat (limited to 'game/src/Game/GameSession/SearchPanel.gd')
-rw-r--r--game/src/Game/GameSession/SearchPanel.gd2
1 files changed, 2 insertions, 0 deletions
diff --git a/game/src/Game/GameSession/SearchPanel.gd b/game/src/Game/GameSession/SearchPanel.gd
index 5554226..c41660f 100644
--- a/game/src/Game/GameSession/SearchPanel.gd
+++ b/game/src/Game/GameSession/SearchPanel.gd
@@ -103,6 +103,8 @@ func _add_result_button() -> bool:
return false
button.pressed.connect(_result_selected.bind(_result_buttons.size()))
+ # Country/State/Province display names are already translated in the MenuSingleton
+ button.auto_translate = false
_results_list_box.add_child(child)
_result_buttons.push_back(button)