Android本地化机制官方参考:http://developer.android.com/guide/topics/resources/localization.html
Android开发通过在资源目录下按特定命名规则建立相应的资源目录即可实现资源的本地化,比如value-en-rGB,其中en代表语言,r是指定区域保留字,GB代表区域;
Android的语言代码遵循ISO 639-2国际标准,参见:http://www.loc.gov/standards/iso639-2/php/code_list.php
Android的区域代码遵循ISO 3166-1-alpha-2国际标准,参见:http://www.iso.org/iso/prods-services/iso3166ma/02iso-3166-code-lists/country_names_and_code_elements
部分常见本地化命名如下:
Arabic, Egypt (ar_EG) 阿拉伯语,埃及Arabic, Israel (ar_IL) 阿拉伯语,以色列Bulgarian, Bulgaria (bg_BG) 保加利亚语Catalan, Spain (ca_ES) 西班牙Czech, Czech Republic (cs_CZ)捷克Danish, Denmark(da_DK)丹麦German, Austria (de_AT)德语,奥地利German, Switzerland (de_CH)德语,瑞士German, Germany (de_DE)德语German, Liechtenstein (de_LI)德语,列支敦士登Greek, Greece (el_GR)希腊English, Australia (en_AU)英语,澳大利亚English, Canada (en_CA)英语,加拿大English, Britain (en_GB)英语English, Ireland (en_IE)英语,爱尔兰English, India (en_IN)英语,印度English, New Zealand (en_NZ)英语,新西兰English, Singapore(en_SG)英语,新加坡English, US (en_US)英语English, Zimbabwe (en_ZA)英语,津巴布韦Spanish (es_ES)西班牙语Spanish, US (es_US)西班牙语Finnish, Finland (fi_FI)芬兰French, Belgium (fr_BE)法语French, Canada (fr_CA)法语,加拿大French, Switzerland (fr_CH)法语French, France (fr_FR)法语Hebrew, Israel (he_IL)希伯来Hindi, India (hi_IN)印地语Croatian, Croatia (hr_HR)克罗地亚Hungarian, Hungary (hu_HU)匈牙利Indonesian, Indonesia (id_ID)印度尼西亚Italian, Switzerland (it_CH)意大利,瑞士Italian, Italy (it_IT)意大利Japanese (ja_JP)日语Korean (ko_KR)韩语Lithuanian, Lithuania (lt_LT)立陶宛Latvian, Latvia (lv_LV)拉脱维亚Norwegian-Bokmol, Norway(nb_NO)挪威Dutch, Belgium (nl_BE)荷兰,比利时Dutch, Netherlands (nl_NL)荷兰Polish (pl_PL)波兰语Portuguese, Brazil (pt_BR)葡萄牙,巴西Portuguese, Portugal (pt_PT)葡萄牙Romanian, Romania (ro_RO)罗马尼亚Russian (ru_RU)俄语Slovak, Slovakia (sk_SK)斯洛伐克Slovenian, Slovenia (sl_SI)斯洛文尼亚Serbian (sr_RS)塞尔维亚语Swedish, Sweden (sv_SE)瑞典Thai, Thailand (th_TH)泰语Tagalog, Philippines (tl_PH)他加禄语Turkish, Turkey (tr_TR)土耳其Ukrainian, Ukraine (uk_UA)乌克兰Vietnamese, Vietnam (vi_VN)越南Chinese, PRC (zh_CN)中文简Chinese, Taiwan (zh_TW)中文繁