Localization codes do not work

I am developing an Android application and implementing localization.

Therefore, I create strings.xml in separate folders, such as values, values-ja, values-es.

But, eclipse throws errors for my values ​​folder.

values-es-US does not work in Spanish values-fr-CA does not work French Canada

I meant http://download1.parallels.com/SiteBuilder/Windows/docs/3.2/en_US/sitebulder-3.2-win-sdk-localization-pack-creation-guide/30801.htm for localization codes

Other localizations, such as values-hk, values-tw, values-uk, seem accurate.

Can someone point me in the right direction? How can I have separate lines for the Spanish USA and Spain, France and France.

thanks

+3
android localization
source share
2 answers

Please check out the following codes provided by Android.

Local Code Language / Country
Default English / United Kingdom de-rDE de-rDE = German / Germany
fr-rFR = French / France
fr-rCA = French / Canada
ru-rCA = English / Canada
ja-rJP = Japanese / Japan
en-rUS = English / US

+5
source share

http://java.sun.com/developer/technicalArticles/J2SE/locale/

Reading this document, I realized that I can set the locale with the new Locale ("fr", "ca"); and changing the values ​​folder to values-fr-rCA worked

thanks

+2
source share

All Articles