Support system default CultureInfo (#3681)
authorhjhun <36876573+hjhun@users.noreply.github.com>
Fri, 22 Oct 2021 05:23:27 +0000 (14:23 +0900)
committerGitHub <noreply@github.com>
Fri, 22 Oct 2021 05:23:27 +0000 (14:23 +0900)
commit5d03e55ecf5756aedc25f853f99c42f7bfb1331b
tree75d8eb81fcdd9de53ec1088fb8788dcbb16848dc
parent6625bfd0644b8a119ba1921d489a76040e7e4474
Support system default CultureInfo (#3681)

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]