What is the proper locale code for Android for Simplified Chinese and Portugese-Brazil?
android, locale
Solution
Use
new Locale("pt","BR");
instead of
new Locale("pt_BR");
Problem
In my app users have the ability to switch their app locale to one of the other app supported languages. I'm having issues getting Portuguese-Brazil and Simplified Chinese to work. All other translations work properly when the user changes the locale settings. These translations work properly if the device locale is pt-rBR or zh-rCN so the only thing that could be wrong is the locale code I use. However, anything I've tried fails. Anybody know the proper Android locale codes for these so users can properly switch if they desire?