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

Merge pull request #107999 from timothyqiu/translation-cleanup

Clean up editor translation related methods
This commit is contained in:
Thaddeus Crews
2025-10-15 16:31:09 -05:00
12 changed files with 77 additions and 163 deletions

View File

@@ -581,7 +581,7 @@ void EditorNode::_update_translations() {
if (main->is_enabled()) {
// Check for the exact locale.
// `get_potential_translations("zh_CN")` could return translations for "zh".
if (main->get_loaded_locales().has(main->get_locale_override())) {
if (main->has_translation_for_locale(main->get_locale_override())) {
// The set of translation resources for the current locale changed.
const HashSet<Ref<Translation>> translations = main->get_potential_translations(main->get_locale_override());
if (translations != tracked_translations) {