Fix remapped font reloading on locale change.
(cherry picked from commit 8b2260544a
)
This commit is contained in:
parent
b0179bba74
commit
b62b3fc40b
|
@ -520,11 +520,11 @@ String TranslationServer::get_country_name(const String &p_country) const {
|
||||||
void TranslationServer::set_locale(const String &p_locale) {
|
void TranslationServer::set_locale(const String &p_locale) {
|
||||||
locale = standardize_locale(p_locale);
|
locale = standardize_locale(p_locale);
|
||||||
|
|
||||||
|
ResourceLoader::reload_translation_remaps();
|
||||||
|
|
||||||
if (OS::get_singleton()->get_main_loop()) {
|
if (OS::get_singleton()->get_main_loop()) {
|
||||||
OS::get_singleton()->get_main_loop()->notification(MainLoop::NOTIFICATION_TRANSLATION_CHANGED);
|
OS::get_singleton()->get_main_loop()->notification(MainLoop::NOTIFICATION_TRANSLATION_CHANGED);
|
||||||
}
|
}
|
||||||
|
|
||||||
ResourceLoader::reload_translation_remaps();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String TranslationServer::get_locale() const {
|
String TranslationServer::get_locale() const {
|
||||||
|
@ -816,10 +816,11 @@ bool TranslationServer::is_pseudolocalization_enabled() const {
|
||||||
void TranslationServer::set_pseudolocalization_enabled(bool p_enabled) {
|
void TranslationServer::set_pseudolocalization_enabled(bool p_enabled) {
|
||||||
pseudolocalization_enabled = p_enabled;
|
pseudolocalization_enabled = p_enabled;
|
||||||
|
|
||||||
|
ResourceLoader::reload_translation_remaps();
|
||||||
|
|
||||||
if (OS::get_singleton()->get_main_loop()) {
|
if (OS::get_singleton()->get_main_loop()) {
|
||||||
OS::get_singleton()->get_main_loop()->notification(MainLoop::NOTIFICATION_TRANSLATION_CHANGED);
|
OS::get_singleton()->get_main_loop()->notification(MainLoop::NOTIFICATION_TRANSLATION_CHANGED);
|
||||||
}
|
}
|
||||||
ResourceLoader::reload_translation_remaps();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void TranslationServer::set_editor_pseudolocalization(bool p_enabled) {
|
void TranslationServer::set_editor_pseudolocalization(bool p_enabled) {
|
||||||
|
@ -836,10 +837,11 @@ void TranslationServer::reload_pseudolocalization() {
|
||||||
pseudolocalization_suffix = GLOBAL_GET("internationalization/pseudolocalization/suffix");
|
pseudolocalization_suffix = GLOBAL_GET("internationalization/pseudolocalization/suffix");
|
||||||
pseudolocalization_skip_placeholders_enabled = GLOBAL_GET("internationalization/pseudolocalization/skip_placeholders");
|
pseudolocalization_skip_placeholders_enabled = GLOBAL_GET("internationalization/pseudolocalization/skip_placeholders");
|
||||||
|
|
||||||
|
ResourceLoader::reload_translation_remaps();
|
||||||
|
|
||||||
if (OS::get_singleton()->get_main_loop()) {
|
if (OS::get_singleton()->get_main_loop()) {
|
||||||
OS::get_singleton()->get_main_loop()->notification(MainLoop::NOTIFICATION_TRANSLATION_CHANGED);
|
OS::get_singleton()->get_main_loop()->notification(MainLoop::NOTIFICATION_TRANSLATION_CHANGED);
|
||||||
}
|
}
|
||||||
ResourceLoader::reload_translation_remaps();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
StringName TranslationServer::pseudolocalize(const StringName &p_message) const {
|
StringName TranslationServer::pseudolocalize(const StringName &p_message) const {
|
||||||
|
|
Loading…
Reference in New Issue