Android4.0 Delete Hebrew

Source: Internet
Author: User

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 );
....................................

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.