diff --git a/editor/editor_build_profile.cpp b/editor/editor_build_profile.cpp index 65bca1a9351..67bc55fdd67 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 1318b596852..e97e4ac777b 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 c6a6163a4e0..4858fcf78fc 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 902e166fd9e..bec13b710de 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(); 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 6000e2b1d35..8453a414737 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 a9fc6c4db60..8b4a0e989cc 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 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 51642d8503e..8fd66fac04d 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));