diff --git a/target/product/languages_default.mk b/target/product/languages_default.mk new file mode 100644 index 0000000000..a13a23c569 --- /dev/null +++ b/target/product/languages_default.mk @@ -0,0 +1,105 @@ +# +# Copyright (C) 2009 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +# This is a build configuration that just contains a list of languages, with +# en_US set as the default language. +PRODUCT_LOCALES := \ + en_US \ + af_ZA \ + am_ET \ + ar_EG \ + ar_XB \ + as_IN \ + az_AZ \ + be_BY \ + bg_BG \ + bn_BD \ + bs_BA \ + ca_ES \ + cs_CZ \ + da_DK \ + de_DE \ + el_GR \ + en_AU \ + en_CA \ + en_GB \ + en_IN \ + en_XA \ + es_ES \ + es_US \ + et_EE \ + eu_ES \ + fa_IR \ + fi_FI \ + fr_CA \ + fr_FR \ + gl_ES \ + gu_IN \ + hi_IN \ + hr_HR \ + hu_HU \ + hy_AM \ + in_ID \ + is_IS \ + it_IT \ + iw_IL \ + ja_JP \ + ka_GE \ + kk_KZ \ + km_KH \ + kn_IN \ + ko_KR \ + ky_KG \ + lo_LA \ + lt_LT \ + lv_LV \ + mk_MK \ + ml_IN \ + mn_MN \ + mr_IN \ + ms_MY \ + my_MM \ + nb_NO \ + ne_NP \ + nl_NL \ + or_IN \ + pa_IN \ + pl_PL \ + pt_BR \ + pt_PT \ + ro_RO \ + ru_RU \ + si_LK \ + sk_SK \ + sl_SI \ + sq_AL \ + sr_Latn_RS \ + sr_RS \ + sv_SE \ + sw_TZ \ + ta_IN \ + te_IN \ + th_TH \ + tl_PH \ + tr_TR \ + uk_UA \ + ur_PK \ + uz_UZ \ + vi_VN \ + zh_CN \ + zh_HK \ + zh_TW \ + zu_ZA \ diff --git a/target/product/languages_full.mk b/target/product/languages_full.mk index 5f3795f210..43a40a7e94 100644 --- a/target/product/languages_full.mk +++ b/target/product/languages_full.mk @@ -14,94 +14,9 @@ # limitations under the License. # -# This is a build configuration that just contains a list of languages. -# -# These are all the locales that have translations. -PRODUCT_LOCALES := \ - en_US \ - af_ZA \ - am_ET \ - ar_EG \ - ar_XB \ - as_IN \ - az_AZ \ - be_BY \ - bg_BG \ - bn_BD \ - bs_BA \ - ca_ES \ - cs_CZ \ - da_DK \ - de_DE \ - el_GR \ - en_AU \ - en_CA \ - en_GB \ - en_IN \ - en_XA \ - en_XC \ - es_ES \ - es_US \ - et_EE \ - eu_ES \ - fa_IR \ - fi_FI \ - fr_CA \ - fr_FR \ - gl_ES \ - gu_IN \ - hi_IN \ - hr_HR \ - hu_HU \ - hy_AM \ - in_ID \ - is_IS \ - it_IT \ - iw_IL \ - ja_JP \ - ka_GE \ - kk_KZ \ - km_KH \ - kn_IN \ - ko_KR \ - ky_KG \ - lo_LA \ - lt_LT \ - lv_LV \ - mk_MK \ - ml_IN \ - mn_MN \ - mr_IN \ - ms_MY \ - my_MM \ - nb_NO \ - ne_NP \ - nl_NL \ - or_IN \ - pa_IN \ - pl_PL \ - pt_BR \ - pt_PT \ - ro_RO \ - ru_RU \ - si_LK \ - sk_SK \ - sl_SI \ - sq_AL \ - sr_Latn_RS \ - sr_RS \ - sv_SE \ - sw_TZ \ - ta_IN \ - te_IN \ - th_TH \ - tl_PH \ - tr_TR \ - uk_UA \ - ur_PK \ - uz_UZ \ - vi_VN \ - zh_CN \ - zh_HK \ - zh_TW \ - zu_ZA +# This is a build configuration that contains the default list of languages, +# as well as the en_XC pseudo-locale, which is useful for localization test +# builds. + +$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_default.mk) +PRODUCT_LOCALES += en_XC diff --git a/target/product/mainline_system.mk b/target/product/mainline_system.mk index df5f4edfe4..ef3051703b 100644 --- a/target/product/mainline_system.mk +++ b/target/product/mainline_system.mk @@ -17,6 +17,7 @@ # This makefile is the basis of a generic system image for a handheld device. $(call inherit-product, $(SRC_TARGET_DIR)/product/handheld_system.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_system.mk) +$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_default.mk) # Shared java libs PRODUCT_PACKAGES += \ @@ -105,8 +106,6 @@ PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ # Enable dynamic partition size PRODUCT_USE_DYNAMIC_PARTITION_SIZE := true -PRODUCT_LOCALES := en_US af_ZA am_ET ar_EG as_IN az_AZ be_BY bg_BG bn_BD bs_BA ca_ES cs_CZ da_DK de_DE el_GR en_AU en_CA en_GB en_IN es_ES es_US et_EE eu_ES fa_IR fi_FI fr_CA fr_FR gl_ES gu_IN hi_IN hr_HR hu_HU hy_AM in_ID is_IS it_IT iw_IL ja_JP ka_GE kk_KZ km_KH ko_KR ky_KG lo_LA lt_LT lv_LV kn_IN mn_MN ml_IN mk_MK mr_IN ms_MY my_MM ne_NP nb_NO nl_NL or_IN pa_IN pl_PL pt_BR pt_PT ro_RO ru_RU si_LK sk_SK sl_SI sq_AL sr_Latn_RS sr_RS sv_SE sw_TZ ta_IN te_IN th_TH tl_PH tr_TR uk_UA ur_PK uz_UZ vi_VN zh_CN zh_HK zh_TW zu_ZA en_XA ar_XB - PRODUCT_NAME := mainline_system PRODUCT_BRAND := generic