1 # This creates short versions of locales as symlinks to full versions
2 # e.g. zh_Hant_TW is a symlink to zh_Hant_TW.UTF-8.
4 UTF8
= af_ZA am_ET be_BY bg_BG ca_AD ca_ES ca_FR ca_IT \
5 cs_CZ da_DK de_AT de_CH de_DE el_GR en_AU en_CA \
6 en_GB en_HK en_IE en_NZ en_PH en_SG en_US es_AR \
7 es_CR es_ES es_MX et_EE eu_ES fi_FI fr_BE fr_CA \
8 fr_CH fr_FR he_IL hi_IN hr_HR hu_HU hy_AM is_IS \
9 it_CH it_IT ja_JP ko_KR lt_LT lv_LV nb_NO \
10 nl_BE nl_NL nn_NO pl_PL pt_BR pt_PT ro_RO ru_RU \
11 se_FI se_NO sk_SK sl_SI sv_FI sv_SE tr_TR uk_UA \
20 EURO
= ca_AD ca_ES ca_FR ca_IT da_DK de_AT de_CH de_DE \
21 en_GB es_ES et_EE eu_ES fi_FI fr_BE fr_CH fr_FR \
22 is_IS it_CH it_IT nb_NO nl_BE nl_NL nn_NO pt_PT \
25 STD1
= af_ZA en_AU en_CA en_HK en_NZ en_SG en_US en_ZA \
26 es_AR es_MX fr_CA pt_BR
27 STD2
= cs_CZ hr_HR hu_HU ro_RO sr_Latn_RS
28 STD5
= be_BY ru_RU sr_Cyrl_RS
29 STD15
= ca_AD ca_ES ca_FR ca_IT da_DK de_AT de_CH de_DE \
30 en_GB en_IE es_ES et_EE eu_ES fi_FI fr_BE fr_CH \
31 fr_FR is_IS it_CH it_IT nb_NO nl_BE nl_NL nn_NO \
34 MANUAL
= lt_LT el_GR lv_LV
36 LOCALEDIR
= /usr
/share
/locale
38 SYMLINKS
= lt_LT.ISO8859-13
${LOCALEDIR}/lt_LT \
39 el_GR.ISO8859-7
${LOCALEDIR}/el_GR \
40 lv_LV.ISO8859-13
${LOCALEDIR}/lv_LV
42 .for symdir in
${STD1}
43 SYMLINKS
+= ${symdir}.ISO8859-1
${LOCALEDIR}/${symdir}
45 .for symdir in
${STD2}
46 SYMLINKS
+= ${symdir}.ISO8859-2
${LOCALEDIR}/${symdir}
48 .for symdir in
${STD5}
49 SYMLINKS
+= ${symdir}.ISO8859-5
${LOCALEDIR}/${symdir}
51 .for symdir in
${STD15}
52 SYMLINKS
+= ${symdir}.ISO8859-15
${LOCALEDIR}/${symdir}
54 .for symdir in
${UTF8}
55 . if
! (${STD1
:M
${symdir}} ||
${STD2
:M
${symdir}} || \
56 ${STD5
:M
${symdir}} ||
${STD15
:M
${symdir}} ||
${MANUAL
:M
${symdir}})
57 SYMLINKS
+= ${symdir}.UTF-8
${LOCALEDIR}/${symdir}
60 .for symdir in
${EURO}
61 SYMLINKS
+= ${symdir}.ISO8859-15
${LOCALEDIR}/${symdir}@euro
64 # We need to keep zh_CN.* around as aliases to zh_Hans_CN.* because some
65 # of the lang catalogs use zh_CN still (e.g. vi), plus people may expect it
66 # We won't alias zh_Hans_CN or zh_Hans_UTF8 though
67 .for CN in GB18030 GB2312 GBK UTF-8 eucCN
68 SYMLINKS
+= zh_Hans_CN.
${CN} ${LOCALEDIR}/zh_CN.
${CN}
71 .
include <bsd.prog.mk
>