mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 17:19:50 +00:00
Try to fix Pixelorama's locale not loading when the OS locale is not set to English
This commit is contained in:
parent
0b3f7e1bd0
commit
debbbf34d1
|
@ -1018,8 +1018,6 @@ func path_join_array(basepaths: PackedStringArray, subpath: String) -> PackedStr
|
||||||
|
|
||||||
|
|
||||||
func set_locale(locale: String) -> void:
|
func set_locale(locale: String) -> void:
|
||||||
if TranslationServer.get_locale() == locale:
|
|
||||||
return
|
|
||||||
locale = find_nearest_locale(locale)
|
locale = find_nearest_locale(locale)
|
||||||
if not locale in TranslationServer.get_loaded_locales():
|
if not locale in TranslationServer.get_loaded_locales():
|
||||||
var translation := load("res://Translations/%s.po" % locale)
|
var translation := load("res://Translations/%s.po" % locale)
|
||||||
|
|
Loading…
Reference in a new issue