[Applications] Set CultureInfo using LCID instread of locale (#3634)
authorhjhun <36876573+hjhun@users.noreply.github.com>
Fri, 1 Oct 2021 07:52:58 +0000 (16:52 +0900)
committerGitHub <noreply@github.com>
Fri, 1 Oct 2021 07:52:58 +0000 (16:52 +0900)
commit9492ca5682eba69031060ad94d20ae3567a3550b
treef5a5066fa862d4a4e37e8dc1af4067596ba7a4de
parentff99333af33e7d6f789c9aa5c26ce1dd5a1d379d
[Applications] Set CultureInfo using LCID instread of locale (#3634)

* Fix Getting CultureInfo

After this patch is applied, we use LCID to create CultureInfo properly.
If it's failed, we tries to create CultureInfo using ULocale.

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Set CultureInfo before calling OnCreate()

While starting the application, the CultureInfo is wrong when the system
locale is 'uz_UZ@cyrillic'. For this case, we sets CurrentCultureInfo and
CurrentUICultureInfo using LCID of the default locale.

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Fix GetCultureInfo() Method

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/Tizen.Applications.Common/Interop/Interop.BaseUtilsi18n.cs
src/Tizen.Applications.Common/Tizen.Applications/CoreApplication.cs