1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

[Accessibility] Always auto-translation mode for names/descriptions.

This commit is contained in:
Pāvels Nadtočajevs
2025-05-30 17:55:27 +03:00
parent b89c47bb85
commit 3198b7bea2
2 changed files with 4 additions and 6 deletions

View File

@@ -1747,10 +1747,7 @@ void ScriptEditor::_notification(int p_what) {
[[fallthrough]];
}
case NOTIFICATION_TRANSLATION_CHANGED: {
disk_changed_list->set_accessibility_name(TTR("The following files are newer on disk"));
[[fallthrough]];
}
case NOTIFICATION_TRANSLATION_CHANGED:
case NOTIFICATION_LAYOUT_DIRECTION_CHANGED:
case NOTIFICATION_THEME_CHANGED: {
tab_container->add_theme_style_override(SceneStringName(panel), get_theme_stylebox(SNAME("ScriptEditor"), EditorStringName(EditorStyles)));
@@ -4463,6 +4460,7 @@ ScriptEditor::ScriptEditor(WindowWrapper *p_wrapper) {
disk_changed_list = memnew(Tree);
disk_changed_list->set_hide_root(true);
disk_changed_list->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
disk_changed_list->set_accessibility_name(TTRC("The following files are newer on disk"));
disk_changed_list->set_v_size_flags(SIZE_EXPAND_FILL);
vbc->add_child(disk_changed_list);