summaryrefslogtreecommitdiffstats
path: root/editor/editor_locale_dialog.cpp
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2024-03-17 16:28:18 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2024-03-18 09:31:00 +0800
commit8cd1ebbd6da7505bfa8a32b1e3c2d0fe5810dba2 (patch)
tree5bdd3aeff5a97c2993663bda879f6583558596b7 /editor/editor_locale_dialog.cpp
parentfe01776f05b1787b28b4a270d53037a3c25f4ca2 (diff)
downloadredot-engine-8cd1ebbd6da7505bfa8a32b1e3c2d0fe5810dba2.tar.gz
Fix unexpected auto translation of Tree content
Diffstat (limited to 'editor/editor_locale_dialog.cpp')
-rw-r--r--editor/editor_locale_dialog.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/editor_locale_dialog.cpp b/editor/editor_locale_dialog.cpp
index f1d82557fd..1318b59685 100644
--- a/editor/editor_locale_dialog.cpp
+++ b/editor/editor_locale_dialog.cpp
@@ -433,6 +433,7 @@ EditorLocaleDialog::EditorLocaleDialog() {
}
{
lang_list = memnew(Tree);
+ lang_list->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
lang_list->set_v_size_flags(Control::SIZE_EXPAND_FILL);
lang_list->connect("cell_selected", callable_mp(this, &EditorLocaleDialog::_item_selected));
lang_list->set_columns(1);
@@ -452,6 +453,7 @@ EditorLocaleDialog::EditorLocaleDialog() {
}
{
script_list = memnew(Tree);
+ script_list->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
script_list->set_v_size_flags(Control::SIZE_EXPAND_FILL);
script_list->connect("cell_selected", callable_mp(this, &EditorLocaleDialog::_item_selected));
script_list->set_columns(1);
@@ -470,6 +472,7 @@ EditorLocaleDialog::EditorLocaleDialog() {
}
{
cnt_list = memnew(Tree);
+ cnt_list->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
cnt_list->set_v_size_flags(Control::SIZE_EXPAND_FILL);
cnt_list->connect("cell_selected", callable_mp(this, &EditorLocaleDialog::_item_selected));
cnt_list->set_columns(1);