Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 957f1abf authored by Ricardo Cerqueira's avatar Ricardo Cerqueira Committed by Gerrit Code Review
Browse files

product: Let a device customize its own locales

Use TARGET_LOCALES. If existing, it'll override the defaults except
for en_US

Change-Id: I450fa5023ba48f07622d23158012b5b7d5f2130b
parent 0cf0a185
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -36,8 +36,12 @@ $(call inherit-product-if-exists, frameworks/base/data/sounds/AllAudio.mk)
# Get the TTS language packs
$(call inherit-product-if-exists, external/svox/pico/lang/all_pico_languages.mk)

ifeq ($(TARGET_LOCALES),)
# Get a list of languages.
$(call inherit-product, $(SRC_TARGET_DIR)/product/locales_full.mk)
else
PRODUCT_LOCALES := $(TARGET_LOCALES)
endif

# Get everything else from the parent package
$(call inherit-product, $(SRC_TARGET_DIR)/product/generic_no_telephony.mk)