Adding/Removing the language entries in the “Settings” -> “Select Locale” from Android phone

后端 未结 6 1497
礼貌的吻别
礼貌的吻别 2021-02-01 03:20

My question:

How can I add or remove the language entries in the \"Settings\" -> \"Language & keyboard settings\" -> \"Select Locale\"(or \"Select Language\") in t

6条回答
  •  长发绾君心
    2021-02-01 04:01

    To create or add multiple languages to your application, first you have to define all you string values in the string.xml in the values folder rather than hard coding them in you program. Then you also have to have different Value folders for different languages, e.g. Value-es for Spanish and Value-fr for french. This should do the job. I dont think the application can change locale by default.

提交回复
热议问题