1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 09:09:47 +00:00

Try to fix Pixelorama's locale not loading when the OS locale is not set to English

This commit is contained in:
Emmanouil Papadeas 2024-06-03 15:23:33 +03:00
parent 0b3f7e1bd0
commit debbbf34d1

View file

@ -1018,8 +1018,6 @@ func path_join_array(basepaths: PackedStringArray, subpath: String) -> PackedStr
func set_locale(locale: String) -> void:
if TranslationServer.get_locale() == locale:
return
locale = find_nearest_locale(locale)
if not locale in TranslationServer.get_loaded_locales():
var translation := load("res://Translations/%s.po" % locale)