Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing i18n for some editor strings #89811

Merged
merged 1 commit into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions editor/editor_build_profile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -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: {
Expand Down
2 changes: 1 addition & 1 deletion editor/editor_locale_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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, "");
}

Expand Down
2 changes: 1 addition & 1 deletion editor/editor_properties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions editor/groups_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion modules/multiplayer/editor/replication_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
4 changes: 2 additions & 2 deletions modules/openxr/editor/openxr_action_set_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
Loading