You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Fix double translations in Project Manager
This commit is contained in:
@@ -323,6 +323,7 @@ void ProjectListItemControl::_bind_methods() {
|
||||
|
||||
ProjectListItemControl::ProjectListItemControl() {
|
||||
set_focus_mode(FocusMode::FOCUS_ALL);
|
||||
set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
|
||||
|
||||
VBoxContainer *favorite_box = memnew(VBoxContainer);
|
||||
favorite_box->set_alignment(BoxContainer::ALIGNMENT_CENTER);
|
||||
@@ -330,8 +331,9 @@ ProjectListItemControl::ProjectListItemControl() {
|
||||
|
||||
favorite_button = memnew(TextureButton);
|
||||
favorite_button->set_name("FavoriteButton");
|
||||
favorite_button->set_tooltip_text(TTR("Add to favorites"));
|
||||
favorite_button->set_tooltip_text(TTRC("Add to favorites"));
|
||||
favorite_button->set_accessibility_name(TTRC("Add to favorites"));
|
||||
favorite_button->set_auto_translate_mode(AUTO_TRANSLATE_MODE_ALWAYS);
|
||||
// This makes the project's "hover" style display correctly when hovering the favorite icon.
|
||||
favorite_button->set_mouse_filter(MOUSE_FILTER_PASS);
|
||||
favorite_box->add_child(favorite_button);
|
||||
@@ -358,7 +360,6 @@ ProjectListItemControl::ProjectListItemControl() {
|
||||
|
||||
project_title = memnew(Label);
|
||||
project_title->set_focus_mode(FOCUS_ACCESSIBILITY);
|
||||
project_title->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
|
||||
project_title->set_name("ProjectName");
|
||||
project_title->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
project_title->set_clip_text(true);
|
||||
@@ -380,7 +381,8 @@ ProjectListItemControl::ProjectListItemControl() {
|
||||
|
||||
explore_button = memnew(Button);
|
||||
explore_button->set_name("ExploreButton");
|
||||
explore_button->set_tooltip_text(TTR("Open in file manager"));
|
||||
explore_button->set_tooltip_auto_translate_mode(AUTO_TRANSLATE_MODE_ALWAYS);
|
||||
explore_button->set_tooltip_text(TTRC("Open in file manager"));
|
||||
explore_button->set_accessibility_name(TTRC("Open in file manager"));
|
||||
explore_button->set_flat(true);
|
||||
path_hb->add_child(explore_button);
|
||||
@@ -411,6 +413,7 @@ ProjectListItemControl::ProjectListItemControl() {
|
||||
last_edited_info->set_focus_mode(FOCUS_ACCESSIBILITY);
|
||||
last_edited_info->set_name("LastEditedInfo");
|
||||
last_edited_info->set_mouse_filter(Control::MOUSE_FILTER_PASS);
|
||||
last_edited_info->set_tooltip_auto_translate_mode(AUTO_TRANSLATE_MODE_ALWAYS);
|
||||
last_edited_info->set_tooltip_text(TTRC("Last edited timestamp"));
|
||||
last_edited_info->set_modulate(Color(1, 1, 1, 0.5));
|
||||
path_hb->add_child(last_edited_info);
|
||||
|
||||
Reference in New Issue
Block a user