[Applications.Common] Support system default CultureInfo (#3680)
authorhjhun <36876573+hjhun@users.noreply.github.com>
Fri, 22 Oct 2021 05:23:35 +0000 (14:23 +0900)
committerGitHub <noreply@github.com>
Fri, 22 Oct 2021 05:23:35 +0000 (14:23 +0900)
commit3f3331e510e93b169cab08f0c57d2d472cc22945
treea86145c26fb65da00c490d325f3c591b895cd2ca
parentb4733ec5eed32d73a177f705e85887a93b873695
[Applications.Common] Support system default CultureInfo (#3680)

When the system locale is "tl_PH.utf8", the CoreApplication sets the
CultureInfo that is created using "en". Because, there is no CultureInfo
about "tl-PH" and "tl". But, the developer can create the resource using
"tl-PH". In this case, developers expect the name of the CultureInfo is "tl-PH".
Platform should set the current CultureInfo that is "tl-PH".
This patch supports system default CultureInfo using xml file.
Platform developers can set the default culture name for each locale.
The CoreApplication tries to create the CultureInfo using the culture name.

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/Tizen.Applications.Common/Tizen.Applications/CoreApplication.cs
src/Tizen.Applications.Common/Tizen.Applications/CultureInfoHelper.cs [new file with mode: 0755]