diff options
| author | Juan Linietsky | 2017-06-28 17:00:18 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-06-28 17:01:35 -0300 |
| commit | db3b05d2893dcaddeb3bcb10b845ff150eb50895 (patch) | |
| tree | e19d761357300ba03360593e3cbdda01e87f215e /core/translation.cpp | |
| parent | 9e54e1f34f7ee0b100b45fa2388f25096eb90670 (diff) | |
| download | godot-db3b05d2893dcaddeb3bcb10b845ff150eb50895.tar.gz godot-db3b05d2893dcaddeb3bcb10b845ff150eb50895.tar.zst godot-db3b05d2893dcaddeb3bcb10b845ff150eb50895.zip | |
Diffstat (limited to 'core/translation.cpp')
| -rw-r--r-- | core/translation.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/translation.cpp b/core/translation.cpp index bd670167f..72231ef29 100644 --- a/core/translation.cpp +++ b/core/translation.cpp @@ -870,6 +870,10 @@ void Translation::set_locale(const String &p_locale) { } else { locale = univ_locale; } + + if (OS::get_singleton()->get_main_loop()) { + OS::get_singleton()->get_main_loop()->notification(MainLoop::NOTIFICATION_TRANSLATION_CHANGED); + } } void Translation::add_message(const StringName &p_src_text, const StringName &p_xlated_text) { @@ -945,6 +949,8 @@ void TranslationServer::set_locale(const String &p_locale) { if (OS::get_singleton()->get_main_loop()) { OS::get_singleton()->get_main_loop()->notification(MainLoop::NOTIFICATION_TRANSLATION_CHANGED); } + + ResourceLoader::reload_translation_remaps(); } String TranslationServer::get_locale() const { |
