-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Dragonforge:
Out of curiosity, could you add a Polish translation, delete the
configuration.settingsfile inapp_userdatafor the project and see if it defaults to polish for you? There’s an OS locale detection Godot has that I called and I’m curious if it works.
WCHC:
It does work if I add the
pltranslation, but doesn’t work if I addpl_PLtranslation.
You’re usingOS.get_locale_language()here:
if current_selection == -1:
var preferred_language: String = OS.get_locale_language()
which gets just the
pl, so thepl_PLwon’t be matched.
print(OS.get_locale_language()) ## prints "pl"
print(OS.get_locale()) ## prints "pl_PL"
Maybe you could first check if there is a full
localematch and only after that fallback tolocale_language.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request