You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS/device including version:
IOS version 13.6
Iphone language: Português
Region: Brasil
Issue description:
Methods TranslationServer.get_locale() and OS.get_locale() returns inconsistent results.
In an Iphone 8 with IOS 13.6
TranslationSever.get_locale() returns: en
OS.get_locale() returns: en_BR
I think both results are wrong. The OS language is Portuguese so the method OS.get_locale() should have returned pt_BR. It returned an invalid locale (en_BR). The same problem occurred with TranslationServer.get_locale().
In an Android phone with similar configuration:
Language: Português (Brasil)
Both methods return pt_BR as result.
Steps to reproduce:
Create a project with a simple call to both methods.
print( OS.get_locale() )
print( TranslationSever.get_locale() )
Export to an IOS project
Configure the iphone language to Portuguese (*)
Configure the iphone region to Brazil (or Portugal) (*)(**)
Install and run with xcode (to see the locale print)
(*) You can use the xcode simulator
(**) I don´t checked if the problem occurs with others countries
Minimal reproduction project:
The text was updated successfully, but these errors were encountered:
Yeah, this seems to be an iOS issue with NSLocale/Locale which for some reason returns incorrect identifier for current.
This can be worked around with NSLocale/Locale.preferredLanguages.
Godot version:
3.2.2.stable
OS/device including version:
IOS version 13.6
Iphone language: Português
Region: Brasil
Issue description:
Methods TranslationServer.get_locale() and OS.get_locale() returns inconsistent results.
In an Iphone 8 with IOS 13.6
TranslationSever.get_locale() returns: en
OS.get_locale() returns: en_BR
I think both results are wrong. The OS language is Portuguese so the method OS.get_locale() should have returned pt_BR. It returned an invalid locale (en_BR). The same problem occurred with TranslationServer.get_locale().
In an Android phone with similar configuration:
Language: Português (Brasil)
Both methods return pt_BR as result.
Steps to reproduce:
Create a project with a simple call to both methods.
print( OS.get_locale() )
print( TranslationSever.get_locale() )
Export to an IOS project
Configure the iphone language to Portuguese (*)
Configure the iphone region to Brazil (or Portugal) (*)(**)
Install and run with xcode (to see the locale print)
(*) You can use the xcode simulator
(**) I don´t checked if the problem occurs with others countries
Minimal reproduction project:
The text was updated successfully, but these errors were encountered: