summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-04-04 14:31:43 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-04-04 14:31:43 +0200
commitc97885be7d1da7ac1e327f36b68d061d42c46a56 (patch)
tree5be7d36a130519d935033f75039f434ba6f1a3f6
parent27dec32699a686c69d9284a3458736680e3d2307 (diff)
parent91204f6f3f701887716d4628baa72b4f647d8857 (diff)
downloadredot-engine-c97885be7d1da7ac1e327f36b68d061d42c46a56.tar.gz
Merge pull request #89811 from timothyqiu/missing-i18n
Fix missing i18n for some editor strings
-rw-r--r--editor/editor_build_profile.cpp6
-rw-r--r--editor/editor_locale_dialog.cpp2
-rw-r--r--editor/editor_properties.cpp2
-rw-r--r--editor/groups_editor.cpp4
-rw-r--r--modules/multiplayer/editor/replication_editor.cpp2
-rw-r--r--modules/openxr/editor/openxr_action_set_editor.cpp4
-rw-r--r--modules/openxr/editor/openxr_select_interaction_profile_dialog.cpp2
7 files changed, 11 insertions, 11 deletions
diff --git a/editor/editor_build_profile.cpp b/editor/editor_build_profile.cpp
index 65bca1a935..67bc55fdd6 100644
--- a/editor/editor_build_profile.cpp
+++ b/editor/editor_build_profile.cpp
@@ -383,7 +383,7 @@ void EditorBuildProfileManager::_profile_action(int p_action) {
switch (p_action) {
case ACTION_RESET: {
- confirm_dialog->set_text("Reset the edited profile?");
+ confirm_dialog->set_text(TTR("Reset the edited profile?"));
confirm_dialog->popup_centered();
} break;
case ACTION_LOAD: {
@@ -404,11 +404,11 @@ void EditorBuildProfileManager::_profile_action(int p_action) {
export_profile->set_current_file(profile_path->get_text());
} break;
case ACTION_NEW: {
- confirm_dialog->set_text("Create a new profile?");
+ confirm_dialog->set_text(TTR("Create a new profile?"));
confirm_dialog->popup_centered();
} break;
case ACTION_DETECT: {
- confirm_dialog->set_text("This will scan all files in the current project to detect used classes.");
+ confirm_dialog->set_text(TTR("This will scan all files in the current project to detect used classes."));
confirm_dialog->popup_centered();
} break;
case ACTION_MAX: {
diff --git a/editor/editor_locale_dialog.cpp b/editor/editor_locale_dialog.cpp
index 1318b59685..e97e4ac777 100644
--- a/editor/editor_locale_dialog.cpp
+++ b/editor/editor_locale_dialog.cpp
@@ -322,7 +322,7 @@ void EditorLocaleDialog::_update_tree() {
if (!is_edit_mode) {
TreeItem *t = cnt_list->create_item(c_root);
- t->set_text(0, "[Default]");
+ t->set_text(0, TTR("[Default]"));
t->set_metadata(0, "");
}
diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp
index c6a6163a4e..4858fcf78f 100644
--- a/editor/editor_properties.cpp
+++ b/editor/editor_properties.cpp
@@ -2159,7 +2159,7 @@ EditorPropertyQuaternion::EditorPropertyQuaternion() {
warning_dialog->set_text(TTR("Temporary Euler will not be stored in the object with the original value. Instead, it will be stored as Quaternion with irreversible conversion.\nThis is due to the fact that the result of Euler->Quaternion can be determined uniquely, but the result of Quaternion->Euler can be multi-existent."));
euler_label = memnew(Label);
- euler_label->set_text("Temporary Euler");
+ euler_label->set_text(TTR("Temporary Euler"));
edit_custom_bc->add_child(warning);
edit_custom_bc->add_child(edit_custom_layout);
diff --git a/editor/groups_editor.cpp b/editor/groups_editor.cpp
index 902e166fd9..bec13b710d 100644
--- a/editor/groups_editor.cpp
+++ b/editor/groups_editor.cpp
@@ -196,7 +196,7 @@ void GroupsEditor::_update_tree() {
TreeItem *root = tree->create_item();
TreeItem *local_root = tree->create_item(root);
- local_root->set_text(0, "Scene Groups");
+ local_root->set_text(0, TTR("Scene Groups"));
local_root->set_icon(0, get_editor_theme_icon(SNAME("PackedScene")));
local_root->set_custom_bg_color(0, get_theme_color(SNAME("prop_subsection"), SNAME("Editor")));
local_root->set_selectable(0, false);
@@ -233,7 +233,7 @@ void GroupsEditor::_update_tree() {
keys.sort_custom<NoCaseComparator>();
TreeItem *global_root = tree->create_item(root);
- global_root->set_text(0, "Global Groups");
+ global_root->set_text(0, TTR("Global Groups"));
global_root->set_icon(0, get_editor_theme_icon(SNAME("Environment")));
global_root->set_custom_bg_color(0, get_theme_color(SNAME("prop_subsection"), SNAME("Editor")));
global_root->set_selectable(0, false);
diff --git a/modules/multiplayer/editor/replication_editor.cpp b/modules/multiplayer/editor/replication_editor.cpp
index 6000e2b1d3..8453a41473 100644
--- a/modules/multiplayer/editor/replication_editor.cpp
+++ b/modules/multiplayer/editor/replication_editor.cpp
@@ -600,7 +600,7 @@ void ReplicationEditor::_add_property(const NodePath &p_property, bool p_spawn,
item->set_text_alignment(2, HORIZONTAL_ALIGNMENT_CENTER);
item->set_cell_mode(2, TreeItem::CELL_MODE_RANGE);
item->set_range_config(2, 0, 2, 1);
- item->set_text(2, "Never,Always,On Change");
+ item->set_text(2, TTR("Never", "Replication Mode") + "," + TTR("Always", "Replication Mode") + "," + TTR("On Change", "Replication Mode"));
item->set_range(2, (int)p_mode);
item->set_editable(2, true);
}
diff --git a/modules/openxr/editor/openxr_action_set_editor.cpp b/modules/openxr/editor/openxr_action_set_editor.cpp
index a9fc6c4db6..8b4a0e989c 100644
--- a/modules/openxr/editor/openxr_action_set_editor.cpp
+++ b/modules/openxr/editor/openxr_action_set_editor.cpp
@@ -261,13 +261,13 @@ OpenXRActionSetEditor::OpenXRActionSetEditor(Ref<OpenXRActionMap> p_action_map,
action_set_hb->add_child(action_set_priority);
add_action = memnew(Button);
- add_action->set_tooltip_text("Add Action.");
+ add_action->set_tooltip_text(TTR("Add action."));
add_action->connect("pressed", callable_mp(this, &OpenXRActionSetEditor::_on_add_action));
add_action->set_flat(true);
action_set_hb->add_child(add_action);
rem_action_set = memnew(Button);
- rem_action_set->set_tooltip_text("Remove Action Set.");
+ rem_action_set->set_tooltip_text(TTR("Remove action set."));
rem_action_set->connect("pressed", callable_mp(this, &OpenXRActionSetEditor::_on_remove_action_set));
rem_action_set->set_flat(true);
action_set_hb->add_child(rem_action_set);
diff --git a/modules/openxr/editor/openxr_select_interaction_profile_dialog.cpp b/modules/openxr/editor/openxr_select_interaction_profile_dialog.cpp
index 51642d8503..8fd66fac04 100644
--- a/modules/openxr/editor/openxr_select_interaction_profile_dialog.cpp
+++ b/modules/openxr/editor/openxr_select_interaction_profile_dialog.cpp
@@ -111,7 +111,7 @@ void OpenXRSelectInteractionProfileDialog::ok_pressed() {
}
OpenXRSelectInteractionProfileDialog::OpenXRSelectInteractionProfileDialog() {
- set_title("Select an interaction profile");
+ set_title(TTR("Select an interaction profile"));
scroll = memnew(ScrollContainer);
scroll->set_custom_minimum_size(Size2(600.0, 400.0));