mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #107999 from timothyqiu/translation-cleanup
Clean up editor translation related methods
This commit is contained in:
commit
20430236e7
12 changed files with 77 additions and 163 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue