diff options
author | Tianjie Xu <xunchang@google.com> | 2020-12-29 00:59:13 +0100 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-12-29 00:59:13 +0100 |
commit | 0e46691951480deb14626f4e0aa765966231047a (patch) | |
tree | f80df623f55112ae21f05b29a8221daa7f6379ab /tools/image_generator | |
parent | Merge "minui: fix mem leakage issue" am: d694016206 (diff) | |
parent | Merge "Add doc for image_generator" (diff) | |
download | android_bootable_recovery-0e46691951480deb14626f4e0aa765966231047a.tar android_bootable_recovery-0e46691951480deb14626f4e0aa765966231047a.tar.gz android_bootable_recovery-0e46691951480deb14626f4e0aa765966231047a.tar.bz2 android_bootable_recovery-0e46691951480deb14626f4e0aa765966231047a.tar.lz android_bootable_recovery-0e46691951480deb14626f4e0aa765966231047a.tar.xz android_bootable_recovery-0e46691951480deb14626f4e0aa765966231047a.tar.zst android_bootable_recovery-0e46691951480deb14626f4e0aa765966231047a.zip |
Diffstat (limited to 'tools/image_generator')
-rw-r--r-- | tools/image_generator/README.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/image_generator/README.md b/tools/image_generator/README.md index 5d70354e4..1230ad510 100644 --- a/tools/image_generator/README.md +++ b/tools/image_generator/README.md @@ -19,3 +19,13 @@ emulators with different dpi. 4. `resourceDirectory`: The resource directory that contains all the translated strings in xml format, e.g. bootable/recovery/tools/recovery_l10n/res/ 5. `outputFilename`: Path to the generated image. + +# Locales +Supported locales and background texts are located in +[tools/recovery_l10n/res/](../recovery_l10n/res/values). For each background text, the tool renders +a localized image for every supported locale. + +Each individual localized image contains an encoded locale header string, and the rendered +background text. The locale header string is generated by `Locale.forLanguageTag`. And sample +result include `en-US`, `zh-CN`, etc. These individual images are then concatenated together to +form the final resource image that locates in res/images, e.g. `install_text.png` |