| 367 | } |
| 368 | |
| 369 | void TranslationServer::set_locale(const String &p_locale) { |
| 370 | String new_locale = standardize_locale(p_locale); |
| 371 | if (locale == new_locale) { |
| 372 | return; |
| 373 | } |
| 374 | |
| 375 | locale = new_locale; |
| 376 | ResourceLoader::reload_translation_remaps(); |
| 377 | |
| 378 | if (OS::get_singleton()->get_main_loop()) { |
| 379 | OS::get_singleton()->get_main_loop()->notification(MainLoop::NOTIFICATION_TRANSLATION_CHANGED); |
| 380 | } |
| 381 | } |
| 382 | |
| 383 | String TranslationServer::get_locale() const { |
| 384 | return locale; |
nothing calls this directly
no test coverage detected