In my application, I need to display strings according to user locale selection. So, I put my strings.xml
in values-en
, values-ko
, etc. How can I set locale us, australia i.e; values-en_US
, values-en_AU
? But it's throwing an error? Can any one tell me how to set these locales in my code?
views:
70answers:
3Thank u coomonware
Srinivas
2010-08-30 10:38:53
i am not getting error, am getting default strings on application , where i selected locale from custom locale , i need korean so i selected ko_KR , i kept Stings.xml in values-ko-rKR , but still am getting strings ?
Srinivas
2010-08-30 10:41:10
A:
I am not clear with your question but if you are not sure as what name you need to for a specified locale refer to these links
http://developer.android.com/intl/de/reference/java/util/Locale.html
http://groups.google.com/group/android-developers/web/localizing-android-apps-draft
Android by default will take the resources from respective language that has been selected on the device/stimulator.
Rahul
2010-08-30 10:38:02
A:
There is International Standard for Locale.....like values-en for English....values-ko for Korean...You cant modify the standard..It would work if you keep the folder name as values-ko.
Rohan K
2010-08-30 12:13:25