Or you could just use 'raw' resources.

They allow for resource qualifiers (res/raw, res/raw-ru, res/raw-de, etc.)
and text files placed there are compressed.

-- K

2012/5/5 Jim Graham <[email protected]>

> On Sat, May 05, 2012 at 08:51:20PM +0530, Raghav Sood wrote:
> > It's not supported directly, but you can take a look at the following
> > StackOverflow threads for how to do it programmatically.
> >
> > http://bit.ly/JBuT1F
> > http://bit.ly/IwAuan
>
> Ok, thanks...that's a great start.  I particularly like a comment in one
> of the two, about using Locale.getLanguage().substring(0,2).toLowerCase()
> to get the prefix.  So that covers loading the specific language file.
>
> Is it safe enough to trust web-based translation sites like Babelfish
> to get the translations?  Or is there a better resource?  And what set
> of languages would be best to provide decent coverage?  Or should I just
> provide a file for every language the translation method provides?
>
> Thanks,
>   --jim
>
> --
> THE SCORE:  ME:  2  CANCER:  0
> 73 DE N5IAL (/4)        MiSTie #49997  < Running FreeBSD 7.0 >
> [email protected] ICBM/Hurricane: 30.44406N 86.59909W
>
>        Do not look into laser with remaining eye.
>
> Android Apps Listing at http://www.jstrack.org/barcodes.html
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> 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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to