The normal idea is thatBuild/target/product/languages_full.mkOrLanguages_small.mkOperation:
Product_locales: = commandid when de_de nl_nl cs_cz pl_pl ja_jp when zh_cn ru_ru ko_kr nb_no es_us da_dk el_gr tr_tr pt_pt when there are too many threads when there is too in_id when there are too many threads when there are too many
Tl_ph ar_eg F a_ir th_th sw_tz ms_my af_za zu_za am_et hi_in
Directly remove the corresponding country language.
However, I am not able to solve this problem. I can't block it in the source code.
Frameworks \ base \ core \ Java \ com \ Android \ internal \ app \ localepicker. Java
Public static arrayadapter <localeinfo> constructadapter (context, Int layoutid, int fieldid ){ Final resources Resources = context. getresources (); Final string [] locales = resources. getsystem (). getassets (). getlocales (); Final string [] speciallocalecodes = resources. getstringarray (R. array. special_locale_codes ); Final string [] speciallocalenames = resources. getstringarray (R. array. special_locale_names ); Arrays. Sort (Locales ); Final int origsize = locales. length; Final localeinfo [] preprocess = new localeinfo [origsize]; Int finalsize = 0; For (INT I = 0; I <origsize; I ++ ){ Final string S = locales [I]; Final int Len = S. Length (); If (LEN = 5 ){ String Language = S. substring (0, 2 ); String country = s. substring (3, 5 ); If (language. Equals ("IW") & country. Equals ("Il "))// Delete the corresponding Hebrew Continue; Final locale L = new locale (language, country );
Log. V (TAG, "========= Language =" + language + "= CaO === Country =" + country ); .................................... |