Skip to content

Commit

Permalink
Make Google's 40-ish languages (covering 99.3% of internet users) the…
Browse files Browse the repository at this point in the history
… default.

We should decouple localizations from internationalization data. This change
does that, so you can have the latter without the former (and third-party
apps can provide the former for themselves, if they wish to).

Change-Id: I07b6ee5e9ce0f858a61efa22e4c46a8e0f5fe970
  • Loading branch information
enh-google authored and Eric Fischer committed Feb 28, 2011
1 parent e05e358 commit ff220c8
Show file tree
Hide file tree
Showing 7 changed files with 522 additions and 1,025 deletions.
39 changes: 6 additions & 33 deletions stubdata/Android.mk
Expand Up @@ -22,42 +22,15 @@ include $(CLEAR_VARS)

# Build configuration:
#
# all includes all ICU's locale data.
# 'all' includes all ICU's locale data.
#
# icudt44l-large.txt includes all the most-used locales, covering 99.3% of
# internet users
# (http://googleblog.blogspot.com/2008/07/hitting-40-languages.html):
# ar, bg, ca, cs, da, de, el, en, es, fa, fi, fil, fr, he, hi, hr, hu, id,
# 'default' (icudt44l-default.txt) includes all the most-used locales,
# covering 99.3% of internet users
# (http://googleblog.blogspot.com/2008/07/hitting-40-languages.html):
# ar, bg, ca, cs, da, de, el, en, es, fa, fi, fil, fr, he, hi, hr, hu, in,
# it, ja, ko, lt, lv, nb, nl, pl, ps, pt, rm, ro, ru, sk, sl, sr, sv, th, tr,
# uk, vi, zh.
#
# icudt44l-default.txt includes cs, de, en, es, fr, it, nl, pl.
# icudt44l-us-japan.txt includes en, ja.

config := $(word 1, \
$(if $(findstring ar,$(PRODUCT_LOCALES)),large) \
$(if $(findstring da,$(PRODUCT_LOCALES)),large) \
$(if $(findstring el,$(PRODUCT_LOCALES)),large) \
$(if $(findstring fi,$(PRODUCT_LOCALES)),large) \
$(if $(findstring he,$(PRODUCT_LOCALES)),large) \
$(if $(findstring hr,$(PRODUCT_LOCALES)),large) \
$(if $(findstring hu,$(PRODUCT_LOCALES)),large) \
$(if $(findstring id,$(PRODUCT_LOCALES)),large) \
$(if $(findstring ko,$(PRODUCT_LOCALES)),large) \
$(if $(findstring nb,$(PRODUCT_LOCALES)),large) \
$(if $(findstring pt,$(PRODUCT_LOCALES)),large) \
$(if $(findstring rm,$(PRODUCT_LOCALES)),large) \
$(if $(findstring ro,$(PRODUCT_LOCALES)),large) \
$(if $(findstring ru,$(PRODUCT_LOCALES)),large) \
$(if $(findstring sk,$(PRODUCT_LOCALES)),large) \
$(if $(findstring sr,$(PRODUCT_LOCALES)),large) \
$(if $(findstring sv,$(PRODUCT_LOCALES)),large) \
$(if $(findstring th,$(PRODUCT_LOCALES)),large) \
$(if $(findstring tr,$(PRODUCT_LOCALES)),large) \
$(if $(findstring uk,$(PRODUCT_LOCALES)),large) \
$(if $(findstring zh,$(PRODUCT_LOCALES)),large) \
$(if $(findstring ja,$(PRODUCT_LOCALES)),us-japan) \
default)
config := default

include $(LOCAL_PATH)/root.mk

Expand Down
Binary file modified stubdata/icudt44l-default.dat
Binary file not shown.

0 comments on commit ff220c8

Please sign in to comment.