Improve auto-translation of settings dialogs
This commit is contained in:
parent
99f5a3d665
commit
87ebd2d03c
14 changed files with 177 additions and 128 deletions
|
|
@ -326,7 +326,7 @@ void SectionedInspector::_search_changed(const String &p_what) {
|
|||
} else {
|
||||
advanced_toggle->set_pressed_no_signal(true);
|
||||
advanced_toggle->set_disabled(true);
|
||||
advanced_toggle->set_tooltip_text(TTR("Advanced settings are always shown when searching."));
|
||||
advanced_toggle->set_tooltip_text(TTRC("Advanced settings are always shown when searching."));
|
||||
}
|
||||
}
|
||||
update_category_list();
|
||||
|
|
@ -338,6 +338,15 @@ void SectionedInspector::_advanced_toggled(bool p_toggled_on) {
|
|||
inspector->set_restrict_to_basic_settings(restrict_to_basic);
|
||||
}
|
||||
|
||||
void SectionedInspector::_notification(int p_notification) {
|
||||
if (p_notification == NOTIFICATION_TRANSLATION_CHANGED) {
|
||||
if (sections->get_root()) {
|
||||
// Only update when initialized.
|
||||
callable_mp(this, &SectionedInspector::update_category_list).call_deferred();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
EditorInspector *SectionedInspector::get_inspector() {
|
||||
return inspector;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue