January 5th, 2012, 03:59 AM
|
#2 (permalink)
|
|
Premium Member
Join Date: Oct 2011
Location: Sydney, Australia
Posts: 193
Device(s): Galaxy Nexus GSM
Thanks: 2
Thanked 37 Times in 33 Posts
|
You're talking about internationalization (i18n) and localization (l10n).
You don't do this in code. You do it with resources. If you do it correctly, Android will atomically choose the correct resource to match the user's language.
Study the Hello, L10N tutorial and read the localization dev guide.
Basically you need to get all your UI-visible strings out of string constants in your code and layouts, and into string resources. You then have a string resource for each language.
Oh, if you're asking if Android will translate it for you, then no. You need to translate your user interface yourself, or more usually, hire translators to do it for you.
|
|
|
Last edited by jiminaus; January 5th, 2012 at 04:03 AM.
|
|