diff options
Diffstat (limited to 'tools/aapt/Command.cpp')
-rw-r--r-- | tools/aapt/Command.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/aapt/Command.cpp b/tools/aapt/Command.cpp index c02e2c04c63f..9f75d4bec4ad 100644 --- a/tools/aapt/Command.cpp +++ b/tools/aapt/Command.cpp @@ -586,6 +586,18 @@ int doDump(Bundle* bundle) activityIcon.string()); } } + printf("locales:"); + Vector<String8> locales; + res.getLocales(&locales); + const size_t N = locales.size(); + for (size_t i=0; i<N; i++) { + const char* localeStr = locales[i].string(); + if (localeStr == NULL || strlen(localeStr) == 0) { + localeStr = "--_--"; + } + printf(" '%s'", localeStr); + } + printf("\n"); } else if (strcmp("configurations", option) == 0) { Vector<ResTable_config> configs; res.getConfigurations(&configs); |