Merge pull request #89811 from timothyqiu/missing-i18n
Fix missing i18n for some editor strings
This commit is contained in:
commit
c97885be7d
|
@ -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: {
|
||||
|
|
|
@ -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, "");
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue