This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to change android first start language?



Hi,

My android 2.3 is of English language, I can change it after start up, in Settings/Language and Keypad, and select Chinese Language in the bottom of the list.

But, I want to make the default language to Chinese, that is, after compiling the android system,  it will be in chinese on the first boot. not by setting after start manually. How to do it?

 

Thanks,

Kevin

 

  • Hi Kevin,

    You can try modifying /system/build.prop and  change  "ro.product.locale.language=en ro.product.locale.region=GB" to "ro.product.locale.language=zh ro.product.locale.region=CN".

    If you want to modify the way build.prop is generated, set $PRODUCT_DEFAULT_LANGUAGE and $PRODUCT_DEFAULT_REGION when you compile the platform.

    Regards,

    Arun

    Kindly click the verify answer button on this post if it answer your question.

     

  • Hi Arun,

    Arun Joseph said:
    You can try modifying /system/build.prop and  change  "ro.product.locale.language=en ro.product.locale.region=GB" to "ro.product.locale.language=zh ro.product.locale.region=CN".

    I just changed the /system/build.prop and reboot, it seems not take effect.  Not sure recompiling the system.

    I found a prompt on the serial console when changing languages.

    ------------

    # init: sys_prop: permission denied uid:1000  name:user.language
    init: sys_prop: permission denied uid:1000  name:user.region
    binder: 1136: binder_alloc_buf, no vma
    binder: 916:922 transaction failed 29201, size 164-0

    ----------------

    Is this of any help? I think when changing language, the info should be saved in a config file or somewhat, so that it will keep the changes when next reboot, but I don't know where the android saved the changes. Is my opinion right?

     

    Thanks,

    Kevin

     

  • Hi Arun,

    I am sorry, I remake the android system from scratch, and changed the /system/build.prop, now it works, the languages changed.

    Last time, I changed during the android running, and it seems that android get the language property from /data/property/persist.sys.localevar,persist.sys.language, persist.sys.country files If I have changed the language setting ever before.

     

    Thanks,

    Kevin