Add fallback for multilingual support 28/113328/10
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 2 Feb 2017 09:06:53 +0000 (18:06 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Mon, 20 Feb 2017 11:25:33 +0000 (20:25 +0900)
commit49019cdc06f443428b3c6d7d273b4aa4a0c28011
treedd1be5bb4aab29f5c6a9cb74a6d3e1c5f9ac8fa2
parent5ce24250be4c50783b93221e76fe58411e5f3dcd
Add fallback for multilingual support

Applying this patch, we provide the fallback about the multilingual
support. It finds better fallbacks automatically.

+-----------------+----------------+----------------------------+
| Settings        | App Resources  | Resource Resolution        |
+-----------------+----------------+----------------------------+
| 1. nl_BE        | 1. default(en) | try nl_BE => fail          |
| 2. fr_BE        | 2. fr          | try nl => fail             |
|                 | 3. pa          | try children of nl => fail |
|                 |                | try fr_BE => fail          |
|                 |                | use fr                     |
+-----------------+----------------+----------------------------+

Change-Id: I428fccec740b45db59c268565a0c715e3a0b08c7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/appcore-i18n.c
src/base/appcore_base.c