commit | 17b2b2d45854b56de7aa6d1581526e45991274d4 | [log] [tgz] |
---|---|---|
author | Roozbeh Pournader <roozbeh@google.com> | Thu Nov 19 22:32:36 2015 -0800 |
committer | Roozbeh Pournader <roozbeh@google.com> | Tue Dec 08 15:03:39 2015 -0800 |
tree | 0877592db2fbdae59a2a50dd0899e57624b1eb30 | |
parent | 103d61b9f79de4d7b907227a7925e809e3e183c2 [diff] |
Implement locale matching in LocalesList. The algorithm tries to find the first locale in the locale list (usually from the user preference) that somewhat matches one of the locales supported (usually from the list of locales supported by the system or an app). Locales match if both their language and their likely script is the same. Otherwise they don't. Bug: 25800576 Change-Id: I4fbc3f44ab16d41efebbf941e94a0bb30d598f82