Localization Codes Does Not Work
I am developing an android app, and implementing localization. Hence am creating strings.xml in seperate folders such as values, values-ja, values-es. But, eclipse throws errors fo
Solution 1:
Please check out following codes given by the Android.
Locale Code Language / Country Default English / United Kingdom de-rDE de-rDE = German / Germany fr-rFR = French / France fr-rCA = French / Canada en-rCA = English / Canada ja-rJP = Japanese / Japan en-rUS = English / United States
Solution 2:
http://java.sun.com/developer/technicalArticles/J2SE/locale/
Reading that document, i realized i can set the locale with new Locale("fr","ca"); and changing the values folder to values-fr-rCA worked
Thanks
Post a Comment for "Localization Codes Does Not Work"