How to create a custom language pack for android?

2019-02-13 14:56发布

问题:

For fun, I'd like to edit (or add a custom) language pack for my android phone.

I've read a lot about it using google but no real solution.

Is there any way to achieve this? maybe a way to get in to the language files google use and edit them, or add a new translation for the OS?

Any help would be appriciated :)

(additional info: I'm running android 2.2, HTC Legend)

回答1:

Unfortunately there is no such notion as "language packs." You can download the Android source (see http://source.android.com) and add/modify translations but you will have to submit your changes as an Open Source contribution to the Android Open Source Project.

The translations are done per application. For instance, all the translations for the Browser app are in packages/apps/Browser/res/values-LANGUAGECODE. The framework translations are in frameworks/core/res/res/values-LANGUAGECODE.