Baptiste Daroussin bbf9b32c55 There is no point in providing en_US.ISO-8859-1 and en_US.ISO8859-1 let's be
consistent with other locale and only provide en_US.ISO8859-1
2015-11-03 22:02:34 +00:00

41 lines
1.2 KiB
Makefile

# This creates short versions of locales as symlinks to full versions
# e.g. zh_Hant_TW is a symlink to zh_Hant_TW.UTF-8.
UTF8= af_ZA am_ET be_BY bg_BG ca_AD ca_ES ca_FR ca_IT \
cs_CZ da_DK de_AT de_CH de_DE el_GR en_AU en_CA \
en_GB en_HK en_IE en_NZ en_PH en_SG en_US es_AR \
es_CR es_ES es_MX et_EE eu_ES fi_FI fr_BE fr_CA \
fr_CH fr_FR he_IL hi_IN hr_HR hu_HU hy_AM is_IS \
it_CH it_IT ja_JP ko_KR lt_LT lv_LV nb_NO \
nl_BE nl_NL nn_NO pl_PL pt_BR pt_PT ro_RO ru_RU \
se_FI se_NO sk_SK sl_SI sv_FI sv_SE tr_TR uk_UA \
kk_Cyrl_KZ \
mn_Cyrl_MN \
sr_Cyrl_RS \
sr_Latn_RS \
zh_Hans_CN \
zh_Hant_HK \
zh_Hant_TW
LOCALEDIR= ${SHAREDIR}/locale
SYMLINKS= ja_JP.eucJP ${LOCALEDIR}/ja_JP.eucjp \
zh_Hant_TW.UTF-8 ${LOCALEDIR}/zh_TW
.for symdir in ${UTF8}
SYMLINKS+= ${symdir}.UTF-8 ${LOCALEDIR}/${symdir}
.endfor
# We need to keep zh_CN.* around as aliases to zh_Hans_CN.* because some
# of the lang catalogs use zh_CN still (e.g. vi), plus people may expect it
# We won't alias zh_Hans_CN or zh_Hans_UTF8 though
.for CN in GB18030 GB2312 GBK UTF-8 eucCN
SYMLINKS+= zh_Hans_CN.${CN} ${LOCALEDIR}/zh_CN.${CN}
.endfor
.for TW in Big5 UTF-8
SYMLINKS+= zh_Hant_TW.${TW} ${LOCALEDIR}/zh_TW.${TW}
.endfor
.include <bsd.prog.mk>