Wednesday, August 14, 2013

Re: [android-developers] Re: how to get a list of locales supported by device we're running on

On Tue, Aug 13, 2013 at 11:45 PM, Kostya Vasilyev <kmansoft@gmail.com> wrote:
So you have an HTC... I've got two on my desk, and the language / locale list on both of them is region-specific:

Russian (Russia, Ukraine, Georgia, other former Soviet republics) 
English (same list of countries)

Other deivices I have (a couple of Samsungs purchased in Russia, another Samsung from a German mail-order, a Galaxy Nexus from the UK) have a much more complete list of languages, and they're listed without countries.

So yeah, device manufacturer mods...

So, the conclusion seems to be that getLocales() can return locales that are not actually supported, and vice versa, it might not return locales that are supported.  For my purpose, which is to support the widest possible range of languages by exploiting what's on device already (as opposed to distributing own fonts), the API looks useless, and I'm not aware of any other call that would give the correct answer.
 
What if I knew Korean and wanted to use it as the default language on my device? :)

My bet is it would work on Samsungs and LGs, regardless of what L&I or getLocales() say. ;-)
 

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment