android2 3 4 預設語言更改

2021-08-26 10:52:40 字數 740 閱讀 9969

平台:s5pc110

系統:android2.3.4

1,機器出到不同國家,要求的預設語言不同。如果系統語言選擇列表中有這種語言,要改為預設的。

android2.3.4_gb_t34h\build\target\product\languages_full.mk這個檔案中

這裡面為每有支援的語言,如果想預設的話,放在最前面,如下面我們支援預設為日語:

product_locales :=

ja_jppl_pl en_us fr_fr it_it es_es de_de nl_nl cs_cz zh_tw zh_cn ru_ru ko_kr nb_no es_us da_dk el_gr tr_tr pt_pt pt_br rm_ch sv_se bg_bg ca_es en_gb fi_fi hr_hr hu_hu in_id iw_il lt_lt lv_lv ro_ro sk_sk sl_si sr_rs uk_ua vi_vn tl_ph

2,在編譯的過程如下顯示

在編譯的過程中我們可以看到下面的資訊:

** build configuration changed: "full_smdkc110-eng-" -> "full_smdkc110-eng-"

*** forcing "make installclean"...

*** done with the cleaning, now starting the real build.

3,編譯之後,燒錄,效果如下:

android系統預設語言設定

只需要對android build target languages full.mk 中product locales zh cn enus.最前面的一種語言既為預設語言,系統編譯後自動設定屬性到系統中,在 build tools buildinfo.sh echo ro.product.local...

修改 Android 系統預設語言

方法1.product locales 檢視build target product core.mk 發現product brand generic product device generic product name core 把product locales en us zh cn zh tw...

Android 設定預設語言包

寫乙個工具類,讀取在設定中儲存的語言引數 需要所有頁面都繼承乙個基類,在基類的oncreate方法中呼叫工具類的設定語言方法 public class bogokjlanguangutils resources resources context.getresources configuration...