97 LOCALEDIR= /usr/share/locale
102 grep -v '^#' < ${.IMPSRC} > ${.TARGET}
104 FILES= ${LOCALES:S/$/.out/}
107 .for locale in ${LOCALES}
108 FILESDIR_${locale}.out= ${LOCALEDIR}/${locale}
113 ENCODINGS= Big5HKSCS CP949 eucKR GB2312 GBK \
114 ISO8859-1 ISO8859-2 ISO8859-4 ISO8859-15 \
117 DE_LINKS= de_DE:de_CH
118 FR_LINKS= fr_FR:fr_BE fr_FR:fr_CA fr_FR:fr_CH
119 IT_LINKS= it_IT:it_CH
120 NL_LINKS= nl_NL:nl_BE
121 NO_LINKS= nb_NO:no_NO
122 GB_LINKS= en_GB:en_AU en_GB:en_CA en_GB:en_NZ
126 ISO8859-1_ISO8859-1= ${DE_LINKS} ${FR_LINKS} ${GB_LINKS} ${IT_LINKS} \
127 ${NL_LINKS} ${NO_LINKS} en_US:af_ZA
128 ISO8859-1_ISO8859-15= ca_ES da_DK de_AT de_DE en_GB en_US es_ES eu_ES \
129 fi_FI fr_FR is_IS it_IT la_LN nb_NO nl_NL nn_NO no_NO pt_PT \
131 ${DE_LINKS} ${FR_LINKS} ${GB_LINKS} ${IT_LINKS} ${NL_LINKS}
132 ISO8859-1_US-ASCII= ${GB_LINKS} en_GB en_US la_LN
133 ISO8859-1_ISO8859-2= la_LN
134 ISO8859-1_ISO8859-4= la_LN
135 ISO8859-1_UTF-8= en_GB en_US eu_ES nl_NL
136 ISO8859-15_ISO8859-15= en_US:af_ZA
137 UTF-8_Big5HKSCS= zh_TW:zh_HK
138 UTF-8_UTF-8= ${DE_LINKS} ${FR_LINKS} ${GB_LINKS} ${IT_LINKS} ${NL_LINKS} \
140 en_GB:en_IE en_US:af_ZA zh_TW:zh_HK
143 .for enc1 in ${ENCODINGS}
144 .for enc2 in ${ENCODINGS}
145 .for lang_terr in ${${enc1}_${enc2}}
146 SYMLINKS+= ../${lang_terr:C/:.*$//}.${enc1}/${FILESNAME} \
147 ${LOCALEDIR}/${lang_terr:C/^.*://}.${enc2}
152 .include <bsd.prog.mk>